Viewing Messages by Stream
The Admin Portal also lets us explore all the streams that are in the Message Store:
This view also gives us the number of messages in the stream and the globalPosition of the last message that updated the stream’s view. We could do this as a raw query on the Message Store, but that would be a hefty query to execute. We’ll instead add another Aggregator to generate this view. Let’s start with the migration that builds the database table we’ll aggregate to:
| exports.up = function up (knex) { |
| return knex.schema.createTable('admin_streams', table ... |
Get Practical Microservices now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.