Git Product home page Git Product logo

charge-demo's Introduction

Charge and Customer Services demo

Overview

World Cup Discount Code Distribution System Overview

This project is designed to distribute discount codes during the halftime of the World Cup finals. The goal is to distribute a set of discount codes with a total value of around 1 million units. The system is built to handle high traffic loads, ensuring that all users can receive their discount codes efficiently and reliably. Features

High Availability: Designed to withstand high traffic loads and ensure continuous availability.
Scalability: Can scale horizontally to manage increasing user demands.
Efficiency: Ensures quick and efficient distribution of discount codes.
Security: Prevents abuse and ensures that each user can only claim one discount code.

Components

Backend: The core logic for handling discount code requests and distributing them efficiently.
Database: Stores information about the discount codes and tracks which codes have been claimed.

services

Architecture

alt text

Technology Stack

Backend: ‍Python, FastAPI, aio-pika
Message Queue: RabbitMQ
Cache and Locking: Redis
Database: MongoDB
Containerization: Docker

Configuration

RABBITMQ_URL

MONGODB_URL

REDIS_URL


alt text

first, run services by

docker-compose up -d
docker-compose -f docker-compose-db.yml up -d

then run setup.sh

sh mongo_utils/setup.sh

ready to use

charge-demo's People

Contributors

alirezapla avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.