To go back to Vostok: here.
The code here is about creating routine within a pure Vostok 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/baseRoutine/bin/baseRoutine -v bitbucket.org/oscaroscar/vostok/examples/baseRoutine/go
cd $GOPATH/src/bitbucket.org/oscaroscar/vostok/examples/baseRoutine && ./bin/baseRoutine -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/baseRoutine -v ./go && ./bin/baseRoutine -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