To go back to Vostok: here.
The code here is about creating routine within a Vostok/Geen server project.
This example illustrates several things:
- the way 'routines' can be created and released
- how logging from a routine affects the logs
Building the project & starting the server
go build -i -o $GOPATH/src/bitbucket.org/oscaroscar/vostok/examples/geenRoutine/bin/geenRoutine -v bitbucket.org/oscaroscar/vostok/examples/geenRoutine/go
cd $GOPATH/src/bitbucket.org/oscaroscar/vostok/examples/geenRoutine && ./bin/geenRoutine -config=conf/example.dev.localhost.json
One-liner for building and restarting right away (assuming the previous
cd has been run):
go build -i -o bin/geenRoutine -v ./go && ./bin/geenRoutine -config=conf/example.dev.localhost.json
Let's see what's happening
- Logs are created from routines, and the line prefixes reflect the scope that each routine represents
- Some log lines are about the routine pool. But not all of them appear. They depend on the configure