Giter Club home page Giter Club logo

ordermanagement's Introduction

Order Management

This repository demonstrates Observability in springboot microservices using Azure Application Insights Java SDK.

Core Components

  • Order Creation Microservice (Producer Service)- Springboot microservice responsible for creating new orders and pushing events to RabbitMQ.
  • Postgres SQL for persistence.
  • Rabbit MQ - Message Broker to enable asynchronous communication.
  • Order Logging Service (consumer service) - Springboot microservice which reacts on the events published by Order creation service and logs the information to console.
  • Create an application insights resource and obtain the instrumentation key. You can follow this tutorial for details.
  • modify the application.properties for OrderCreationService and OrderLoggingService and add update the property azure.application-insights.instrumentation-key=<your-ikey> with your instrumentation key.

Build the services

mvnw clean build

This command will build all the microservices.

Deploy on docker

Prerequisites:

  • Make sure you have docker installed and running locally. You can install docker by following the steps on docker's official website.

run the command docker-compose up. This will deploy all the microservices including RabbitMQ message broker on a common docker network.

Post requests

curl -d '{"productId" : "car123", "productName" : "car"}' -H "Content-Type: application/json" -X POST http://localhost:18080/orders

This would create a new order message and publish it to RabbitMQ. The consumer service reacts on this message, and logs the information on console.

End To End Transaction on Azure Application Insights

Distributed Trace

Application Map View

Application Map

Visualize RabbitMQ Metrics on Azure Metrics Explorer

Metrics

ordermanagement's People

Contributors

dhaval24 avatar

Watchers

 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.