MajorAPI is a RESTful API built using the FastAPI framework in Python and PHP. It leverages the benefits of event-driven architecture to provide a high-performance and scalable solution for building APIs.
- FastAPI and PHP frameworks for building high-performance APIs
- Event-driven architecture for scalability and high availability
- RESTful API endpoints for handling requests and responses
- Python 3.11 or higher
- PHP 8.0 or higher
- pip package manager
- Docker and Docker Compose (optional)
- Clone the repository to your local machine using the command
git clone https://github.com/foxminchan/MajorAPI.git- Install the required dependencies using the command:
pip install -r requirements.txt- Start the API server using the command:
uvicorn main:app --reloadThe following endpoints are available in the API:
/major- Add major./major/{pk}- Get major state./event- Submit event
The MajorAPI is built using an event-driven architecture to provide a scalable and high-performance solution for building APIs. The API server communicates with other services using events, which are asynchronous messages sent between services. This allows for the processing of large numbers of requests concurrently, while maintaining high availability and fault tolerance.
The MajorAPI with FastAPI and PHP provides a high-performance and scalable solution for building RESTful APIs. Its event-driven architecture ensures high availability and fault tolerance, making it suitable for use in production environments.
