Git Product home page Git Product logo

refarch-cloudnative-micro-inventory's Introduction

refarch-cloudnative-micro-inventory

Microservice Apps Integration with ElasticSearch and MySQL Database

This project is part of the 'IBM Cloud Native Reference Architecture' suite, available at https://github.com/ibm-cloud-architecture/refarch-cloudnative-kubernetes

Table of Contents

Introduction

This project is built to demonstrate Microservice Apps Integration with ElasticSearch and MySQL Database. Inventory uses MySQL database as its datasource.

Implementation

Inventory service

  • Microprofile - leverages the Microprofile framework.
  • Spring - leverages Spring Boot as the Java programming model of choice.

References

refarch-cloudnative-micro-inventory's People

Contributors

hemankita avatar osowski avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

refarch-cloudnative-micro-inventory's Issues

Emphasize that the IP address of the database should be the one returned in "docker inspect mysql"

I'm running locally in my Docker machine.

To deploy this application, the instructions say,

Start the application in docker container. Replace {docker-host} with IP address of the docker-machine, {dbuser} with database user name and {password} with database user password.

I tried different values for the docker-host (127.0.0.1, localhost). After @gangchen03's help, I could configure properly, but using the IP returned by

docker inspect mysql

Please emphasize the need for the right IP in this step.

Thanks

Istio Implementation

Stage 1

  • Virtual Service, Auth Policy, Destination Rule ( PR #113 )

  • Gateway

Stage 2

- [ ] Additional Istio features TBD

Group create failed in Step 7

Step 7 tells me to run

f ic group create -p 8080 -m 128 --min 1 --auto --name micro-inventory-group -e "spring.datasource.url=jdbc:mysql://172.31.0.5:3306/inventorydb" -e "spring.datasource.username=dbuser" -e "spring.datasource.password=password" -e eureka.client.fetchRegistry=true -e eureka.client.registerWithEureka=true -e eureka.client.serviceUrl.defaultZone=http://netflix-eureka-$(cf ic namespace get).mybluemix.net/eureka/ -n inventoryservice -d mybluemix.net registry.ng.bluemix.net/$(cf ic namespace get)/inventoryservice:cloudnative

However the name inventoryservice is taking, so the route couldn't be created:

"Route_Status": {
    "in_progress": false,
    "message": "check host error - failed to create host, details: The host is taken: inventoryservice",
    "successful": false
},

This step should tell the user to specify a unique name for the route

Also Step 8 should describe what's the container group name to be used.

Thanks!

Getting an error, as this micro service is trying to access a Bluemix application

com.netflix.discovery.DiscoveryClient : Can't get a response from http://microservices-refapp-eureka-chrisking.mybluemix.net/eureka/apps/INVENTORY-MICROSERVICE
Can't contact any eureka nodes - possibly a security group issue?
2016-11-08T15:05:24.711505436Z
java.lang.RuntimeException: Bad status: 404
at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1155)
at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1060)
at com.netflix.discovery.DiscoveryClient.register(DiscoveryClient.java:606)
at com.netflix.discovery.DiscoveryClient$HeartbeatThread.run(DiscoveryClient.java:1596)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2016-11-08T15:05:24.711586039Z
2016-11-08 15:05:24.711 ERROR 1 --- [pool-6-thread-1] com.netflix.discovery.DiscoveryClient : DiscoveryClient_INVENTORY-MICROSERVICE/172.17.0.3 - registration failedBad status: 404
2016-11-08T15:05:24.712002642Z
java.lang.RuntimeException: Bad status: 404
at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1155)
at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1060)
at com.netflix.discovery.DiscoveryClient.register(DiscoveryClient.java:606)
at com.netflix.discovery.DiscoveryClient$HeartbeatThread.run(DiscoveryClient.java:1596)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2016-11-08T15:05:24.712143973Z

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.