Upload
tung-ns
View
17.697
Download
1
Embed Size (px)
Citation preview
HOW WE SCALE AS A TECH STARTUPSon Tran – Founder & CEOTung Nguyen – Head of Technical
A little about us
Giao hàng 24h
Our Products
TALA - Tiki E-commerce Platform
TOS - Tiki Operation SystemCMS, Order fulfillment, Delivery, Inventory Management,…
Tiki Mobile App
Tiki.vnResponsive Web
E-Book store
Mobile Apps
Tiki App Miki App
Why technology matters?
Solving E-commerce technology challengesTung Nguyen
Challenges
• Minimum Viable Product• Customer-oriented• Refactoring
• Don’t build everything• Be friendly with SaaS, PaaS (Platform), IaaS (Infrastructure)
• Data-driven
Our Philosophies
LinuxNginxPHP/PythonMySQL/PosgreSQL
Technology Stack
System Architecture
Fastest PHP framework
Technology Stack - PHP Phalcon Framework
Reality - Less than 100ms response time
More focus on business layer
• Problem: • Lots of Product attributes• JOIN too much
• Solution:• Indexing with NoSQL (MongoDB)• Transactions with MySQL• Scaling with MySQL Replication
Technology Stack - Database
MySQL EAV - Entity-attribute value Model
MongoDB - Hierarchical Model
• Problem: • Real-time data changes
updating• Availability, recovering from
disaster
• Solution• Cache map• Cache invalidator and
builder• Use persistent• Engine: Redis
Technology Stack - Caching
How cache map works
• Problems:• Real-time indexing• Data aggregation (Facets)• Performance and Scaling
• Solution• ElasticSearch + MongoDB River
Technology Stack – Search Engine
Solving Super-events
What’s a super-event?Daily traffic
Super-event peak
1. Hard to predict2. Different behaviors3. Investment cost
• August - Dzựt Cô Hồn Online• November - Hội Sách Online• December - Black-Friday, Cyber Monday, Online
Shopping Day
Provide incentives for customers to go online shopping more
Tiki Super Events
Event Dzựt Cô Hồn
• 2014• 28K Likes/Shares• 40K Registered users• 300K Dzut actions• 5K Requests/s
• 2015• 67K Likes/Shares• 150K Registered users• 1.5M Dzut actions• 20K Requests/s
• Case-studies
We had some attentions
Also from our companions
We survived
HOW?
A large and scalable platform
Hundreds times of load testing
Powered by
And also from Product Design
Customer-oriented Product Culture
About Us
Or send your feedback to [email protected] and get a FREE coffee