calendar_today
July 31, 2024
July 31, 2024
|
schedule
3
min read
The process of making OneDEX 40x faster
Backend
Blockchain Integration
Frontend
Smart Contracts

Over the past few months, we’ve made substantial improvements, transforming OneDex into a powerhouse that’s up to 40x faster. How?  

Taking over an existing codebase is always a significant challenge. However, when we were presented with the opportunity to speed-up OneDex (best community DEX on @MultiversX), we saw it as a chance to push the limits of performance and user experience.

During high load periods, OneDex’s performance previously struggled. Our recent efforts have led to:

• Swap: ≈ 39.58x faster

• XStake: ≈ 14.18x faster

• Staking: ≈ 25.2x faster

• Farms: ≈ 11.74x faster

• Pools: ≈ 16.04x faster

• Dashboard: ≈ 24.17x faster

Firstly, we refactored critical sections of the OneDex application. This optimization process eliminated bottlenecks and enhanced efficiency, paving the way for faster and more reliable performance. By streamlining data fetching and processing, we significantly reduced the number of API requests, cutting down latency and improving response times for a smoother user experience.

To manage data more effectively, we built a dedicated microservice that leverages caching and persistence. This microservice ensures that frequently accessed data is readily available, reducing the need for repeated database queries and enhancing overall performance. Keeping the technology stack up-to-date is crucial for performance and security, so we updated all libraries used within OneDex to their latest versions.

Lastly, accurate and fast data is critical for a seamless trading experience. We introduced a speedy price indexer that ensures real-time price updates, allowing users to make informed decisions quickly.

The journey to revamp OneDex has been challenging but super rewarding. With these improvements, OneDex now offers significantly enhanced performance.

Placeholder

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.