Giter Club home page Giter Club logo

monolith-to-microservices-example's Introduction

Refactoring a monolithic application to microservices

This repository contains the code used in the tutorials Inter-service communication in a microservices setup and Distributed tracing in a microservices application.

This tutorial series uses the example of a dummy ecommerce application and walks through the steps of converting the monolithic application to microservices. The tutorial series demonstrates microservices development using Strangler Pattern for checkout and payment flows in the example ecommerce application. Other details covered include distributed transactions spanning across microservices boundaries, implementing compensating transactions using Sagas, isolating microservices using gRPC, and OpenCensus/Stackdriver based distributed tracing for a polyglot application running different protocols (HTTP and gRPC).

The examples included in the tutorial series come with pre-configured images for easy installation. However, if you wish to change the code and rebuild the container images, run the following:

cd <directory-where-Dockerfile-is-located>
gcloud builds submit --tag gcr.io/<project-id>/<image-url>

For example,

cd microservices/recommendation-services
gcloud builds submit --tag gcr.io/<project-id>/ecomm-recommendation

The image-urls used in the tutorials can be found in the respective deployment files under monolith/ and microservices/kube/ directories. For more details on running gcloud builds, read building container images on Google Cloud. If you choose to run your container images, make sure that the project-id is changed accordingly in the respective deployment files.

Disclaimer

This is not an officially supported Google product.

monolith-to-microservices-example's People

Contributors

prakhag avatar prakhag2 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.