GithubHelp home page GithubHelp logo

isabella232 / opentelemetry-demo-webstore Goto Github PK

View Code? Open in Web Editor NEW

This project forked from open-telemetry/opentelemetry-demo

0.0 0.0 0.0 19.91 MB

OpenTelemetry Community Demo Application

License: Apache License 2.0

Shell 2.33% JavaScript 4.74% Python 27.37% Java 3.90% Go 31.02% C# 8.62% CSS 5.18% Makefile 0.57% HTML 10.76% Dockerfile 5.52%

opentelemetry-demo-webstore's Introduction

Webstore Demo

Under Construction

This repo is a work in progress

Screenshots from the Online Boutique

Home Page Checkout Screen
Screenshot of store homepage Screenshot of checkout screen

Screenshots from Jaeger

Jaeger UI Trace View
Screenshot of Jaeger UI Screenshot of Trace View

Architecture

Online Boutique is composed of 10 microservices written in different languages that talk to each other over gRPC. Plus one Load Generator which uses Locust to fake user traffic. See the Development Principles doc for more information.

Architecture of microservices

Find Protocol Buffers Descriptions at the ./pb directory.

Service Language Description
frontend Go Exposes an HTTP server to serve the website. Does not require signup/login and generates session IDs for all users automatically.
cartservice C# Stores the items in the user's shopping cart in Redis and retrieves it.
productcatalogservice Go Provides the list of products from a JSON file and ability to search products and get individual products.
currencyservice Node.js Converts one money amount to another currency. Uses real values fetched from European Central Bank. It's the highest QPS service.
paymentservice Node.js Charges the given credit card info (mock) with the given amount and returns a transaction ID.
shippingservice Go Gives shipping cost estimates based on the shopping cart. Ships items to the given address (mock)
emailservice Python Sends users an order confirmation email (mock).
checkoutservice Go Retrieves user cart, prepares order and orchestrates the payment, shipping and the email notification.
recommendationservice Python Recommends other products based on what's given in the cart.
adservice Java Provides text ads based on given context words.
loadgenerator Python/Locust Continuously sends requests imitating realistic user shopping flows to the frontend.

Features

  • Kubernetes:
    The app is designed to run on Kubernetes (both locally , as well as on the cloud).
  • Docker:
    This forked sample can also be executed only with Docker.
  • gRPC:
    Microservices use a high volume of gRPC calls to communicate to each other.
  • OpenTelemetry Traces:
    All services are instrumented using OpenTelemetry available instrumentation libraries.
  • OpenTelemetry Collector: All services are instrumented and sending the generated traces to the OpenTelemetry Collector via gRPC. The received traces are then exported to the logs and to Jaeger.
  • Jager:
    All generated traces are being sent to Jaeger.
  • Synthetic Load Generation:
    The application demo comes with a background job that creates realistic usage patterns on the website using Locust load generator.

Local Development

TBD

Demos featuring Online Boutique

TBD

Contributing

See CONTRIBUTING.md

We meet weekly Monday's at 8:15 PT. The meeting is subject to change depending on contributors' availability. Check the OpenTelemetry community calendar for specific dates and Zoom meeting links.

Meeting notes are available as a public Google doc. For edit access, get in touch on Slack.

Maintainers (@open-telemetry/demo-webstore-maintainers):

Approvers (@open-telemetry/demo-webstore-approvers):

Thanks to all the people who have contributed

contributors

opentelemetry-demo-webstore's People

Contributors

arminru avatar cartersocha avatar dependabot[bot] avatar mic-max avatar reyang avatar tigrannajaryan 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.