halilkocaoz / e-cinema

For practicing microservice basics.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

e-cinema

Movie Service

Movie House Service

For practicing microservice basics.

Installation & Run

  • git clone https://github.com/halilkocaoz/e-cinema/
  • cd e-cinema && docker pull && docker-compose up --build

Movie service: http://localhost:9990

Movie house service: http://localhost:9991

Techs & Programming Approaches

  • .NET 8
  • RabbitMQ
  • MongoDB
  • Docker
  • Mediator pattern with MediatR
  • RESTful web services
  • Domain Driven Design
  • SOLID

Use cases

  • Movie service POST /movies > inserts new movie to MongoDB, and publishing the MovieCreatedEvent. MediatR handles the event and sends the new movie to RabbitMQ Queue.
  • Movie service PUT /movies/{id} > updates exist movie, and publishes the MovieUpdatedEvent. MediatR handles the event and sends the updated movie to RabbitMQ Queue.
  • Movie House service consumes the two queue and informs the movie houses.

e-cinema

References:

https://github.com/gizemcifguvercin/E-News

https://github.com/dotnet-architecture/eShopOnContainers

About

For practicing microservice basics.

License:MIT License


Languages

Language:C# 94.5%Language:Dockerfile 5.5%