An open API service indexing awesome lists of open source software.

https://github.com/shreyansh-21/cabsy-microservices

Cabsy-Microservices – A scalable Uber-like backend using microservices, featuring ride booking,
https://github.com/shreyansh-21/cabsy-microservices

Last synced: about 2 months ago
JSON representation

Cabsy-Microservices – A scalable Uber-like backend using microservices, featuring ride booking,

Awesome Lists containing this project

README

        

Cabsy Microservices

Welcome to the Cabsy Microservices repository! This project demonstrates a microservices architecture for a cab booking system, focusing on scalability, maintainability, and efficient service communication.

Table of Contents


Introduction


Cabsy is a conceptual cab booking platform designed to showcase the implementation of microservices in a real-world application. By decomposing the system into distinct services, it ensures better scalability and easier maintenance.

Microservices Architecture


A microservices architecture structures an application as a collection of small, autonomous services modeled around a business domain. Each service:



  • Runs in its own process.

  • Communicates with other services via lightweight protocols (e.g., HTTP, messaging queues).

  • Is developed, deployed, and scaled independently.

  • Encapsulates its own data storage, ensuring data sovereignty.


This approach contrasts with monolithic architectures by promoting flexibility, resilience, and faster time-to-market for new features.

Services Overview


The Cabsy system comprises the following microservices:




  • User Service (user/): Manages user registration, authentication, and profiles.


  • Captain Service (captain/): Handles driver (referred to as "captains") registration, authentication, and profiles.


  • Ride Service (ride/): Manages ride requests, assignments, and tracking.


  • Gateway Service (gateway/): Acts as an API gateway, routing requests to the appropriate services and handling cross-cutting concerns like authentication and rate limiting.

Getting Started

Clone the Repository


git clone https://github.com/shreyansh-21/Cabsy-Microservices.git

Navigate to the Project Directory


cd Cabsy-Microservices/Micro-Services-main

Service Setup


Navigate to each service directory (e.g., user/, captain/) and follow the setup instructions provided in their respective README files.

Run Services


Start each service individually. Ensure that inter-service communication configurations (e.g., URLs, ports) are correctly set.

Access the System


Use the Gateway Service endpoints to interact with the system, as it routes requests to the appropriate microservices.