How to add multiple services for bookshelf standard
Anuradha677 opened this issue · 1 comments
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:
- url: /.*
script: this field is required, but ignored
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.