7.3.3. Deflationary Ecosystem
Last updated
Last updated
The deflationary ecosystem is integrated as a key component to enhance user engagement. One of the first elements of the deflationary ecosystem is educational gambling. The architecture is based on a microservice framework using Java, the Spring Boot framework, PostgreSQL, and Redis databases. Each microservice is responsible for a specific task, ensuring fault tolerance and scalability.
The architecture of a typical service within the deflationary ecosystem is illustrated in the diagram below:
Spring Boot is used to implement business logic (in the case of “educational gambling,” this includes processing bets and distributing winnings). PostgreSQL serves as the primary data storage solution, reliably preserving information about users, their data and other business-related data. Unlike other database management systems, PostgreSQL supports complex analytical queries and long-term data storage, making it more suitable for our use case. Redis is employed for caching temporary data, reducing the load on the primary database. For logging, the ELK stack is utilized, while monitoring is ensured through the combined use of Prometheus and Grafana.
Microservices communicate with each other via REST API and Kafka, ensuring reliable data transmission. Kubernetes is used for container management, guaranteeing automatic scaling and service recovery in case of failures. Compared to monolithic architecture, the microservice approach offers greater adaptability to changes and higher performance levels.
To implement the mechanisms for burning tokens and transferring them to the commission pool for deflationary ecosystem products, a technical user wallet is used. This wallet interacts with the API of DEX or CEX exchanges to purchase tokens, which are subsequently sent for burning and to the dividend pool using smart contract methods.
The same architecture standard will be applied to other elements of the deflationary ecosystem, encompassing inter-service communication and the technology stack described above.