-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
If you want to stick to this approach, and I would highly recommend to not do so, you should consider of assembling your possible SQL queries in your service on compile time. This way you can use sqlc to create dedicated models and data access layers. On the Rabbit MQ you then only publish distinct event types with the parameters passed to the SQL queries. Those you can either route to your distinct handlers via some preprocessing in Go, or use the Rabbit MQ routing via topic exchange to dedicated queues per event type, and have each one handled by your specific handler for this type.