Skip to content

Microservices

Alex edited this page Jan 16, 2023 · 2 revisions

General overview

  • Ruby version - 2.6.6
  • Framework - Sinatra 2.1
  • Localization: i18N
  • Auth: JWT
  • Communication: RabbitMQ, HTTP, RPC

Ads service

Service is responsible for publishing ads

  • Folder ads
  • DB: Postgres - Activerecord

Auth service

Service is responsible for authentication users

  • Folder auth
  • DB: Postgres - Sequel

Geocoder service

Service is responsible for calculating ad location based on coordinates

  • Folder geocoder
  • DB: Postgres - Sequel

Run

To start any of these services configure .env file from .env.example or change the needed yaml file inside settings folder and run the command below inside the service folder:

bin/puma

Interaction diagram

interaction diagram

Clone this wiki locally