GithubHelp home page GithubHelp logo

dharmann / microservices-docker-go-mongodb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from golang-torino/microservices-docker-go-mongodb

0.0 0.0 0.0 4.56 MB

Example of Microservices in Go with Docker, Kubernetes and MongoDB

License: Apache License 2.0

Go 1.74% CSS 0.01% Smarty 0.35% Dockerfile 0.16% CUE 97.75%

microservices-docker-go-mongodb's Introduction

Cinema - Example of Microservices in Go with Docker, Kubernetes and MongoDB

Overview

Cinema is an example project which demonstrates the use of microservices for a fictional movie theater. The Cinema backend is powered by 4 microservices, all of which happen to be written in Go, using MongoDB for manage the database and Docker to isolate and deploy the ecosystem.

  • Movie Service: Provides information like movie ratings, title, etc.
  • Show Times Service: Provides show times information.
  • Booking Service: Provides booking information.
  • Users Service: Provides movie suggestions for users by communicating with other services.

The Cinema use case is based on the project written in Python by Umer Mansoor.

The project structure is based in the knowledge learned in:

Container images used support multi-architectures (amd64, arm/v7 and arm64).

Index

Deployment

The application can be deployed in both environments: local machine or in a kubernetes cluster. You can find the appropriate documentation for each case in the following links:

How To Use Cinema Services

How to observe services

Services are instrumented through OpenTelemetry. If a service is not yet instrumented, you're welcome to add it!

Setup

Each service is already configured in Docker Compose to support otel signals collection.

Copy the .env.example to .env and provide all required information. Pay attention to:

  • updating SERVICE_ENVIRONMENT if multiple users are using the same otel backend, to help with filtering
  • updating OTEL_EXPORTER_OTLP_ENDPOINT with your backend endpoint
  • updating OTEL_EXPORTER_OTLP_HEADERS with your backend authentication token

Useful links

Related Posts

Significant Revisions

Screenshots

Architecture

overview

Homepage

website home page

Users List

users list page

microservices-docker-go-mongodb's People

Contributors

mmorejon avatar omissis avatar endorama avatar lnnt avatar j7a4s0m5ine avatar codelingobot avatar deusing avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.