In Golang a service is a program that executes specific tasks in response to events or requests. A service must be prepared to stop robustly and intelligently when the time comes. Before a service stops it is important that all the tasks are done, all the connections are closed and no goroutines are running.

3m read timeFrom levelup.gitconnected.com
Post cover image
Table of contents
How to build a service in GolangWhat is a service?Building a web serverStarting a serviceWaiting the inevitableShutting down the serviceConclusion

Sort: