-
Notifications
You must be signed in to change notification settings - Fork 4
3.Microservice Structure
In this topic, the structure of a gRPC API microservice created by Upper will be discussed.
We will use the actor service as an example for a topic.
Unlike the monolithic server, a microservice does not have the upper.json file.
Configuration file for using microservices as Docker containers.
This folder contains the file serever.dart which is responsible for running the gRPC server as a microservice.
This folder contains the classes generated by the compilation of the proto3 file. Do not touch them.
This folder contains the files necessary for the microservice to function.
This file contains the static ORM of the actor
table to perform all operations with the database.
This file implements the gRPC server for the microservice.
This class implements the five operations defined in the proto3 file.
This file provides a valid connection to the postgres database. It is not necessary to change it manually, just change the project connection and use the update
command to update the connection of all microservices.