Case Study: Leboncoin: Optimizing API Traffic for Sustainability and Performance

Challenge

Leboncoin, France’s leading online marketplace, faced a significant challenge with excessive API traffic consuming resources and inflating costs. The Promote team, responsible for delivering dynamic user messaging via pop-ins, banners, and notifications, was generating 522 million weekly API calls— 85% of those resulting in 404 errors.

This inefficiency required up to 120 server replicas and pushed database CPU usage to 60%, significantly increasing their carbon footprint and operational costs. As their digital footprint grew, they recognized the urgent need for a scalable, eco-conscious solution that would maintain platform functionality while reducing waste.

Objectives

Leboncoin aimed to eliminate redundant API requests to:

Approach

As part of the Apidays Sustainable Digital Challenge, Leboncoin implemented a three-pronged solution within a single two-week sprint in December 2023:

Impact

The optimization strategy delivered immediate and substantial benefits:

Key Takeaways

Future Steps

Leboncoin plans to further optimize their API architecture by extending these principles to other systems across their platform. They aim to continue monitoring and measuring the environmental impact of their digital operations, setting new benchmarks for sustainable development in the tech industry.

Conclusion

Leboncoin’s proactive approach demonstrates how rethinking fundamental aspects of API design can yield technical, financial, and environmental benefits. By integrating eco-design principles into their product strategy, they proved that eliminating digital waste benefits both business operations and environmental sustainability.