Monolithic Service
#
ForwardSince go-zero integrates web/rpc, some friends in the community will ask me whether go-zero is positioned as a microservice framework. The answer is no. Although go-zero integrates many functions, you can use any one of them independently, or you can develop a single service.
It is not that every service must adopt the design of the microservice architecture.
#
Create greet serviceTake a look at the structure of the greet
service
It can be observed from the above directory structure that although the greet
service is small, it has "all internal organs". Next, we can write business code in greetlogic.go
.
#
Write logic#
Start and access the serviceStart service
Access service