GoogleCloudPlatform / getting-started-java

https://cloud.google.com/java
Apache License 2.0
478 stars 521 forks source link

How to add multiple services for bookshelf standard #435

Closed Anuradha677 closed 4 years ago

Anuradha677 commented 5 years ago

Can someone please help me to convert this default services to microservices for bookshelf-standard app engine standard application? I am experimenting on this like each action should be a service, fir example, create books, adding own books, updating books, these are should be different services not in one default service. if I do change some code in creating books, then that service version should be added, not to the default service. I am trying to add app.yaml file in src folder. I am new to GCP. can someone please guide me on this?

app.yaml

runtime: java api_version: 1 threadsafe: yes service: book/mine

handlers:

averikitsch commented 4 years ago

Each of your services would have to be in separate folders to be deployed separately, see Microservices Architecture on Google App Engine. You're correct that each app.yaml will have the field like: service: book-service. This also means setting up communication between your difference services, see Communicating Between Your Services.