Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Green IO Conference at apidays Paris 2024 - We'...

apidays
December 22, 2024

Green IO Conference at apidays Paris 2024 - We've Lost 10% of Leboncoin's Traffic, Aude Février and Océane Staron, leboncoin

We've Lost 10% of Leboncoin's Traffic ... and That's Good News!
Aude Février, Product Owner at leboncoin
Océane Staron, Senior Back End Engineer at leboncoin

Green IO Conference
apidays Paris 2024 - The Future API Stack for Mass Innovation
December 3 - 5, 2024

------

Check out our conferences at https://www.apidays.global/

Do you want to sponsor or talk at one of our conferences?
https://apidays.typeform.com/to/ILJeAaV8

Learn more on APIscene, the global media made by the community for the community:
https://www.apiscene.io

Explore the API ecosystem with the API Landscape:
https://apilandscape.apiscene.io/

apidays

December 22, 2024
Tweet

More Decks by apidays

Other Decks in Programming

Transcript

  1. W e lo st 10 % o f Le b

    o n co in t ra ffic.. An d , t h a t ’s g o o d n e w s !
  2. Au d e Fé vrie r P ro d u

    ct Ow n e r Océ a n e St a ro n Ba ck -e n d d e ve lo p e r
  3. Au d e Fé vrie r P ro d u

    ct Ow n e r Océ a n e St a ro n Ba ck -e n d d e ve lo p e r
  4. Ou r m issio n P ro d u ct

    m a ssive a n d se g m e n t e d co m m u n ica t io n , in re a l t im e , o n d iffe re n t p a g e s.
  5. W e lco m e a b o a rd

    ! Tech Lead The day autopromo stops ringing, I’ll eat my hat
  6. Th e p ro b le m ? On e

    ca ll p e r lo ca t io n , p e r p a g e , t o fe t ch e lig ib le co n t e n t +85% calls with status 404
  7. P ro o f o f co n ce p

    t Fe a t u re Fla g o n o n e lo ca t io n (su st a in a b le ch a lle n g e 20 22) - 30 % of c alls / we e k
  8. Ca ll o p t im iza t io n

    a s a so lu t io n As w e sa id .. 28 ,8 m illio n s u n iq u e u se rs p e r m o n t h ! P o t e n t ia l p ro b le m s : h ig h la t e n cie s, se rvice in t e rru p t io n , e xp e n sive sca le u p .. Creation of new e n d p oin t re tu rn in g list of location s w ith availab le con te n t for u se r 1 Fron t / ap p s on ly m ake a call w h e n location is in th is list 2 15 m n cach e on th is e n d p oin t 3 De ve lop m e n t cost : 1 sp rin t (2 w e e ks) t
  9. More ad deposits ? P rio risa t io n

    : fo cu s o n sca la b ilit y More user satisfaction ? ❌ ❌ More user transaction ? Better scalability ? ❌ ✅
  10. Ca ll o p t im iza t io n

    : D Da y (De p lo ym e n t Da y) Evo lu t io n o f t h e n u m b e r o f re q u e st s o n o n e o f o u r se rvice s, De ce m b e r 7t h
  11. Ca ll o p t im iza t io n

    : Im p a ct (m icro se rvice s)
  12. Ca ll o p t im iza t io n

    : Im p a ct (m icro se rvice s) In terms of api calls front to back, we saved 2.7 billions calls per week, which represents 10% of Leboncoin global traffic
  13. Ca ll o p t im iza t io n

    : Im p a ct (d a t a b a se ) POV Infra Team
  14. Ca ll o p t im iza t io n

    : Im p a ct (fin a n cia l) We divided by 3 the monthly cost for our team : … An d w e le ft th e TOP 10 of m ost e xp e n sive se rvice s at le b on coin ! Evolution of monthly cost by team (Kubernetes Report)
  15. Ca ll o p t im iza t io n

    : Im p a ct (su st a in a b ilit y) Fo r co m p a n y CPU gained/month: corresponding AWS instance type: c6g.12xlarge ~24 60 9 g CO2 e q Fo r u se rs A lig h te r ap p lication m e an s... - Le ss e n e rg y con su m e d - Fe w e r b u g s - Slow e r p h on e ob sole sce n ce - A d e vice th at can live lon g e r An d g ood n e w s for th e p lan e t an d you r w alle t!
  16. Co n clu sio n We transformed our solu tion

    in to a m ore su stain ab le on e W e took ad van tag e of ou r m atu rity to re th in k ou r softw are solu tion W e re d u ce d th e size an d th e re fore th e cost of ou r in frastru ctu re W e h ave a lig h te r an d scalab le p rod u ct All of which, without damaging our product ✨
  17. Ta k e a w a ys Sustainability, it’s a

    problem for all of us : Product & Tech We are not sustainable specialist, and that’s ok Stay pragmatic, it is the best good practise Monitor your product for improvement Design refacto is not illegal Add sustainability in your product criteria Start now! Find opportunities