Skip to content

toolkitcore/TryMajorEventDriven

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MajorAPI

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.

Features:

  • 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

Requirements

  • Python 3.11 or higher
  • PHP 8.0 or higher
  • pip package manager
  • Docker and Docker Compose (optional)

Installation

  1. Clone the repository to your local machine using the command
git clone https://github.com/foxminchan/MajorAPI.git
  1. Install the required dependencies using the command:
pip install -r requirements.txt
  1. Start the API server using the command:
uvicorn main:app --reload

Endpoints

The following endpoints are available in the API:

  • /major - Add major.
  • /major/{pk} - Get major state.
  • /event - Submit event

Event-driven architecture:

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.

event driven

Conclusion:

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.

About

Api with Event Driven architecture, using FastAPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 40.6%
  • Hack 37.4%
  • PHP 22.0%