microservices-demo | Sample cloud-first application | GCP library

 by   GoogleCloudPlatform Python Version: v0.7.0 License: Apache-2.0

kandi X-RAY | microservices-demo Summary

kandi X-RAY | microservices-demo Summary

microservices-demo is a Python library typically used in Cloud, GCP applications. microservices-demo has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. However microservices-demo build file is not available. You can download it from GitHub.

ATTENTION: Apache Log4j 2 advisory. Due to vulnerabilities present in earlier versions of Log4j 2, we have taken down all affected container images. We highly recommend all demos and forks to now use images from releases >= v0.3.4. Online Boutique is a cloud-native microservices demo application. Online Boutique consists of a 10-tier microservices application. The application is a web-based e-commerce app where users can browse items, add them to the cart, and purchase them. Google uses this application to demonstrate use of technologies like Kubernetes/GKE, Istio, Stackdriver, gRPC and OpenCensus. This application works on any Kubernetes cluster, as well as Google Kubernetes Engine. It’s easy to deploy with little to no configuration.

            kandi-support Support

              microservices-demo has a medium active ecosystem.
              It has 14270 star(s) with 5061 fork(s). There are 220 watchers for this library.
              There were 1 major release(s) in the last 12 months.
              There are 30 open issues and 309 have been closed. On average issues are closed in 131 days. There are 5 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of microservices-demo is v0.7.0

            kandi-Quality Quality

              microservices-demo has 0 bugs and 0 code smells.

            kandi-Security Security

              microservices-demo has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              microservices-demo code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              microservices-demo is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              microservices-demo releases are available to install and integrate.
              microservices-demo has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions, examples and code snippets are available.
              microservices-demo saves you 8010 person hours of effort in developing the same functionality from scratch.
              It has 16667 lines of code, 1864 functions and 60 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed microservices-demo and discovered the below as its top functions. This is intended to give you an instant insight into microservices-demo implemented functionality, and help decide if they suit your requirements.
            • Sends an order confirmation email
            • Sends a confirmation email
            • Start the server
            • Adds an email service servicer to the given server
            • Checkout a cart
            • Add product to cart
            • Set index
            • Index server
            • Adds recommendations service servicer to server
            • Get a JSON logger
            Get all kandi verified functions for this library.

            microservices-demo Key Features

            No Key Features are available at this moment for microservices-demo.

            microservices-demo Examples and Code Snippets

            copy iconCopy
            # Local port to run Producer Tomcat
            # Kafka connection settings
            Kitura Microservices Demo,About
            Swiftdot img2Lines of Code : 7dot img2no licencesLicense : No License
            copy iconCopy
            Sample Cats added
            Web server listening at:
            Browse your REST API at
            Sample bears added
            Web server listening at:
            Browse your REST API at
            swift build
            Godot img3Lines of Code : 5dot img3License : Permissive (Apache-2.0)
            copy iconCopy
            cd $GOPATH/src/github.com/microservices-demo/payment/
            go get -u github.com/FiloSottile/gvt
            gvt restore
            cd $GOPATH/src/github.com/microservices-demo/payment/paymentsvc/
            go build -o payment

            Community Discussions


            Go service name change for linkerd
            Asked 2021-Nov-16 at 17:19

            I have configured linkerd with 2 clusters in GKE (west and east cluster) for multicluster purpose. I used this demo app provided by google https://github.com/GoogleCloudPlatform/microservices-demo

            First I did it with Istio and everything worked out fine, but with linkerd its different. As expected the exported service from east to west cluster with get the cluster name appended to the service. eg in west cluster ,you will get currencyservice-east.

            The problem I think I am having is that the frontend in the west cluster keeps sending request to currencyservice instead of currencyservice-east.

            I didn't have this problem in Istio because Istio used the same service name across clusters. I am not a GO programmer, but I have googled my life to find out where the service name was defined in the frontend source code to change it but I have not succeeded.

            another alternative will be for linkerd to maintain the service name while exporting it.

            please guys help me.



            Answered 2021-Nov-16 at 17:19

            You can use a TrafficSplit on the source cluster to direct calls to currentservice to currentservice-east.

            Source https://stackoverflow.com/questions/69976054


            Eclipse STS - Out of memory
            Asked 2021-Nov-01 at 12:55


            STS crashes continously, here is an exmple of the last logs in projects folder:



            Answered 2021-Oct-31 at 08:04

            Deleted the project (only from eclipse, don't check to option to delete from disk). Then reimport in workspace solved the problem.

            Source https://stackoverflow.com/questions/69784949


            Reference to undeclared resource in Terraform
            Asked 2021-Sep-16 at 17:07

            I am trying to run a test server on aws using terraform. When i run terraform apply it throws an error saying Reference to undeclared resource. Below is my test server file inside terraform.




            Answered 2021-Sep-16 at 17:07


            @SpringBootApplication Not found error coming on module
            Asked 2021-Sep-04 at 20:42

            I am creating microservice application. for which we have a pom in the project. Under this we have multiple modules. I am using Java11 and spring 2.5.4.

            below is my pom. from this all the modules will get versions. Its packaging is pom.



            Answered 2021-Sep-04 at 20:42

            You are using IntelliJ IDEA and did not update the pom information (Icon in the uppoer right with small 'm' symbol.)

            Therefore the dependencies are not resolved properly.

            Besides I suggest to use a single module project for spring boot applications, if there is no real requirement to do otherwise.

            Source https://stackoverflow.com/questions/69058782


            Can't use a method from another file in same package
            Asked 2021-May-16 at 19:22

            That is my server.go file where I define my server struct and its methods.



            Answered 2021-May-16 at 18:51


            How to resolve DNS lookup error when trying to run example microservice application using minikube
            Asked 2021-May-14 at 11:16

            Dear StackOverflow community!

            I am trying to run the https://github.com/GoogleCloudPlatform/microservices-demo locally on minikube, so I am following their development guide: https://github.com/GoogleCloudPlatform/microservices-demo/blob/master/docs/development-guide.md

            After I successfully set up minikube (using virtualbox driver, but I tried also hyperkit, however the results were the same) and execute skaffold run, after some time it will end up with following error:



            Answered 2021-May-14 at 11:16

            Tried it with docker driver, i.e. minikube start --driver=docker, and it works. Thanks Brian!

            Source https://stackoverflow.com/questions/67488003


            Atleast one invalid signature was encountered
            Asked 2020-Dec-19 at 15:20

            I am trying to build and deploy microservices images to a single-node Kubernetes cluster running on my development machine using minikube. I am using the cloud-native microservices demo application Online Boutique by Google to understand the use of technologies like Kubernetes, Istio etc.

            Link to github repo: microservices-demo

            While following the installation process, and on running command skaffold run to build and deploy my application, I get some errors:



            Answered 2020-Jun-22 at 09:07

            There are a few reasons why you encounter these errors:

            1. There might be an issue with the existing cache and/or disc space. In order to fix it you need to clear the APT cache by executing: sudo apt-get clean and sudo apt-get update.

            2. The same goes with existing docker images. Execute: docker image prune -f and docker container prune -f in order to remove unused data and free disc space.

            3. If you don't care about the security risks, you can try to run the apt-get command with the --allow-unauthenticated or --allow-insecure-repositories flag. According to the docs:

            Ignore if packages can't be authenticated and don't prompt about it. This can be useful while working with local repositories, but is a huge security risk if data authenticity isn't ensured in another way by the user itself.

            Please let me know if that helped.

            Source https://stackoverflow.com/questions/62473932


            Online Boutique Extensions
            Asked 2020-Aug-01 at 15:14

            I have been working on extending the GCP Online Boutique microservices example, and I would like to add Istio AuthorizationPolicy resources to the system.

            Concretely, I want an AuthorizationPolicy to block all not-whitelisted traffic to cartservice, and I want to whitelist traffic from frontend to cartservice.

            Currently, I am able to block traffic with an AuthorizationPolicy, but I cannot whitelist traffic by principal or namespace.

            For context, here is my system setup. (Anything not explicitly stated here is the default from the demo linked above)

            Istio Version:



            Answered 2020-Aug-01 at 15:14

            For reference, after debugging in person with OP, we discovered that the cluster was underspecified in terms of CPU usage. On resizing the cluster to have additional CPU (1 vCPU -> 4 vCPUs), we were able to get authz policies working and respected.

            Our hypothesis is that istiod was failing to respond to requests because of this issue. We do not know why.

            Source https://stackoverflow.com/questions/63161116


            Readiness probe failed: timeout: failed to connect service ":8080" within 1s
            Asked 2020-Jul-25 at 20:26

            I am trying to build and deploy microservices images to a single-node Kubernetes cluster running on my development machine using minikube. I am using the cloud-native microservices demo application Online Boutique by Google to understand the use of technologies like Kubernetes, Istio etc.

            Link to github repo: microservices-demo

            I have followed all the installation process to locally build and deploy the microservices, and am able to access the web frontend through my browser. However, when I click on any of the product images say, I see this error page.

            HTTP Status: 500 Internal Server Error

            On doing a check using kubectl get pods I realize that one of my pods( Recommendation service) has status CrashLoopBackOff. Running kubectl describe pods recommendationservice-55b4d6c477-kxv8r:



            Answered 2020-Jul-25 at 20:26

            The timeout of the Readiness Probe (1 second) was too short.

            More Info

            The relevant Readiness Probe is defined such that /bin/grpc_health_probe -addr=:8080 is run inside the server container.

            You would expect a 1 second timeout to be sufficient for such a probe but this is running on Minikube so that could be impacting the timeout of the probe.

            Source https://stackoverflow.com/questions/63060336


            How I use one YAML to deploy two servers where one depends on the other one in Kubernetes
            Asked 2020-Jul-09 at 11:27

            I have two applications, nginx and redis, where nginx uses redis to cache some data so the redis address must be configured in nginx.

            On the one hand, I could first apply the redis deployment and get its IP and then apply the nginx deployment to set up the two application in my minikube.

            But on the other, to simplify installation in the Kubernetes Dashboard for QA, I want to create a single Kubernetes YAML file (like GoogleCloudPlatform/microservices-demo/kubernetes-manifests.yaml) to deploy these two applications on two diverse Pods. However, if I do it by means of Environment Variables, I cannot get the redis address.

            So how do I achieve it?



            Answered 2020-Jul-08 at 11:25

            Hardcoding IP-address is not a good practice. Instead you can create a service for redis as well and configure the service dns name in your nginx deployment using the kubernetes dns config like this my-svc.my-namespace.svc.cluster-domain.example. Your nginx will then communicate to the redis container through this service.

            Source https://stackoverflow.com/questions/62793578

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network


            No vulnerabilities reported

            Install microservices-demo

            After a few minutes, you should see:. Note- you may see <pending> while GCP provisions the load balancer. If this happens, wait a few minutes and re-run the command.
            Create a Google Cloud Platform project or use an existing project. Set the PROJECT_ID environment variable and ensure the Google Kubernetes Engine and Cloud Operations APIs are enabled.
            Clone this repository.
            Create a GKE cluster.
            GKE autopilot mode (see Autopilot overview to learn more):
            GKE Standard mode:
            Deploy the sample app to the cluster.
            Wait for the Pods to be ready.
            Access the web frontend in a browser using the frontend's EXTERNAL_IP.
            [Optional] Clean up:


            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
          • HTTPS


          • CLI

            gh repo clone GoogleCloudPlatform/microservices-demo

          • sshUrl


          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Reuse Pre-built Kits with microservices-demo

            Consider Popular GCP Libraries


            by GoogleCloudPlatform


            by ramitsurana


            by google


            by infracost


            by GoogleCloudPlatform

            Try Top Libraries by GoogleCloudPlatform


            by GoogleCloudPlatformGo


            by GoogleCloudPlatformJupyter Notebook


            by GoogleCloudPlatformJupyter Notebook


            by GoogleCloudPlatformGo


            by GoogleCloudPlatformJupyter Notebook