December 2017
Intermediate to advanced
404 pages
9h 28m
English
Now that we have an event listener, we can use it to implement the booking service. Its general architecture will follow that of the event service, so we will not go too much into detail on that matter.
Start by creating a new package todo.com/myevents/bookingservice and create a new main.go file:
package main import "github.com/streadway/amqp" import "todo.com/myevents/lib/configuration" import msgqueue_amqp "todo.com/myevents/lib/msgqueue/amqp" import "flag" func main() { confPath := flag.String("config", "./configuration/config.json", "path to config file") flag.Parse() config := configuration.ExtractConfiguration(*confPath) dblayer, err := dblayer.NewPersistenceLayer(config.Databasetype, config.DBConnection) ...Read now
Unlock full access