PMU Accelerates on the Cloud: Real-Time Data Management at Scale

  • Home /
  • PMU accelerates on the cloud: Real-time data management at scale

PMU has just taken a major step in its digital transformation. Its information system, currently undergoing a complete overhaul (yes, few companies decide to rebuild their information system from scratch), is now addressing the complex challenges of real-time data management on a global scale.

The goal… to become the global leader in horse racing information!

A global challenge

The world of horse racing never sleeps. With 70,000 races per year worldwide and a race every 15 minutes in France, PMU juggles with a continuous flow of critical data. Horses, jockeys, racecourses, results: every element must be accurate, up-to-date, and instantly available.

The challenge is twofold:

  1. Provide bettors with reliable real-time information to inform their decisions.
  2. Ensure smooth and instant distribution of this data to more than 110 international partners.

This mission requires an infrastructure capable of processing millions of daily bets while ensuring flawless data integrity and availability.

How to recognize a horse, that is the question!!!

A robust cloud-native architecture on AWS

To meet this complex challenge, PMU opted for a cloud-native architecture on AWS, skillfully orchestrated to combine performance, flexibility, and security:

  1. Data collection and processing:

    • AWS Glue handles batch processing of historical data, allowing for in-depth analysis and quality improvement of information accumulated over time.
    • AWS Lambda comes into play for real-time consumption of events, ensuring maximum reactivity to last-minute changes (withdrawals, weather conditions, etc.).
  2. Optimized storage:

    • Amazon S3 serves as a data lake, storing all raw data economically and securely, essential for retrospective analysis and continuous system improvement.
    • Amazon DynamoDB, a high-performance NoSQL database, manages operational data, offering ultra-fast response times essential for live betting.
  3. High-performance real-time distribution:

    • Amazon Managed Streaming for Apache Kafka (MSK) ensures data streaming, allowing instant distribution of updates to all systems and partners.
  4. Secure data exposure:

    • Amazon API Gateway secures and manages REST APIs, offering a single, controlled access point to data for internal applications and external partners.
    • Kafka, in addition, allows direct data streaming for partners requiring real-time integration.

An intelligent and efficient data pipeline

The heart of the system relies on a sophisticated data pipeline, designed to efficiently process the constant flow of information:

  1. Collection: Specialized connectors quickly ingest data from multiple sources (racecourses, betting systems, international partners), ensuring comprehensive and real-time capture of all relevant information.

  2. Cleaning: A process of standardization and automated data correction comes into play. It handles challenges such as spelling variations of horse names or inconsistencies between sources, ensuring a clean and reliable database.

  3. Enrichment: The cleaned data is then merged and enriched. This process creates a unique and comprehensive repository, for example, associating a horse’s performance history with its genealogical data and jockey statistics.

  4. Publication: Finally, the processed data is distributed via Kafka and REST APIs. This system ensures smooth and instant dissemination of information, whether to feed PMU’s betting interfaces or to inform international partners.

The general principle can be summarized as follows: Global flow diagram

Advanced schema management with Avro and AsyncAPI

Data schema management is crucial in such a dynamic environment. PMU has therefore implemented cutting-edge tools:

  • Avro is used for robust definition of Kafka message schemas. This technology allows for flexible evolution of data structures while maintaining compatibility with existing systems, a major asset in a constantly evolving ecosystem.

  • AsyncAPI complements the system by providing clear and precise documentation of interface contracts. This tool greatly facilitates integration for external partners, reducing development times and error risks.

Generally, the process can be identified as follows: Global flow diagram More details are available on this blog page.

Impressive performance and scalability

PMU’s architecture is a true technical tour de force, designed to handle exceptional loads:

  • Processing capacity of up to 2000 transactions per second, allowing management of activity peaks during major horse racing events.
  • Remarkably low latency, under 500ms, crucial for the fluidity of real-time betting and bettor satisfaction.
  • Automatic scalability, allowing resource adjustment based on demand, thus optimizing costs while guaranteeing performance.

Promising evolution perspectives

Far from resting on its laurels, PMU continues to innovate. Several avenues for evolution are under consideration:

  • Migration to Kubernetes: This transition promises even greater scalability and better deployment management, reinforcing the overall resilience of the system. This topic will be the subject of another article.

  • Strengthening industrialization: The focus is on continuous improvement of processes with:

    • More advanced versioning for better traceability of changes.
    • More comprehensive automated tests to guarantee system quality and reliability.
    • Implementation of blue/green deployments for updates without service interruption.
  • AI exploration: PMU is considering integrating artificial intelligence technologies to further optimize data quality, particularly in anomaly detection and betting trend prediction.

Conclusion

The architecture implemented by PMU is an eloquent example of how modern cloud technologies can solve complex real-time data management challenges. By combining cutting-edge AWS services with a thoughtful approach to data quality and distribution, PMU has created a system that is not only robust and performant but also scalable and future-ready.

This technological innovation is much more than a simple technical upgrade. It represents a significant competitive advantage, allowing PMU to consolidate its position as a leader in the world of horse racing betting, while paving the way for new opportunities for expansion and improvement of the customer experience.

In a sector where every second counts and where data accuracy can make the difference between a winning and losing bet, PMU has clearly taken a lead.