20
Mistakes and Experience Improving You Apps Performance! by : Minions Squad Tokopedia

Improving You Apps Performance! by Rico Harisin & Tonito (Tokopedia)

Embed Size (px)

Citation preview

Mistakes and

Experience

Improving You Apps Performance!

by : Minions Squad Tokopedia!

Who Are We?!

“Experience isn’t the best teacher,

evaluated experience is”!John C. Maxwell!

#1 !images

Problem :

•  Scrolling images in Tokopedia App -> b *OOM*!

•  Images is too BIG!

•  Images is not optimized!

How do We find it ?

•  Screening play store reviews!

•  Use crashlytics and monitoring!

•  Using MAT and Time Profiling in Xcode!

Solution :

•  Reduce image size from the API!

•  On Demand Resizing (Thumbor)!

•  Use well-known images libs !

•  Picasso!

•  Glide!

•  Webp!

•  Limit cache size for images!

#2 !ANR

Problem

•  Your app keep freezing and crashing.!

•  Heavy task on main thread!

•  e.g : Calling API!

•  Your users keep yelling “crash!!!” on playstore.!

How do we find it ?

•  ANRWatchdog + Crashlytics for Android!

•  Google Analytics for iOS!

•  Again, by monitoring playstore’s review!

Solution

•  Asynctask any task, that you think can block the process!

•  Even better : observable!

AsyncTask Block

Observable

#3!Highly Available Realtime Push

Notification

Problem

•  Push notification arrive in decade!

•  Cron job as the backbone!

•  Why not call the push notification directly without using cron job ?!

Solution

•  NodeJS + Redis pub sub = super fast!!

•  Publish the data to redis and forget it!

•  We call it: hoshizora!

hoshizora!

github.com/tokopedia!

We Are Hiring!!