Microservices - Advanced Patterns
Given this pseudocode for an Outbox processor, what will be the output if the Outbox table has 3 unprocessed events?
events = db.query("SELECT * FROM outbox WHERE processed = false");
for event in events:
publish(event);
db.update("UPDATE outbox SET processed = true WHERE id = ?", event.id);
print("Processed events count:", len(events))