# Event Publishing, Outbox Pattern and Batching

**URL:** <https://forum.scylladb.com/t/event-publishing-outbox-pattern-and-batching/1380>\
**Category:** ScyllaDB\
**Tags:** data-model, drivers\
**Created:** [March 14, 2024, 8:16am UTC](https://forum.scylladb.com/t/event-publishing-outbox-pattern-and-batching/1380 "2024-03-14T08:16:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.scylladb.com/guy/32/9_2.png) [@Guy](https://forum.scylladb.com/u/Guy)\
**Post date:** [March 14, 2024, 8:16am UTC](https://forum.scylladb.com/t/event-publishing-outbox-pattern-and-batching/1380/1 "2024-03-14T08:16:33Z")

</div>

> [@](#):
>
> [**Originally from the User Slack**](https://scylladb-users.slack.com/)
> 
> ![Arkam_Fahry](https://us1.discourse-cdn.com/flex016/uploads/scylladb/original/1X/f01e477e56b903cc67ca2f24dd59f5f3b1c48ea2.jpeg) **@Arkam\_Fahry:** Hello can any some on help me please. I currently have a file upload system which sends events to a queue for many types of events like upload completion and stuff. I would like events to reliably published at least once by persisting them first into scylladb then publishing the event form scylladb. The current system runs mongodb with a outbox collection when a file is uploaded the file metadata object and the upload event is persisted in a multi document transaction. The events are processed every 250ms in micro batches from outbox collection. Is doing a dual table write with a batch operation a viable solution to persist the event and the entity state.
> 
> ![Felipe_Cardeneti_Mendes](https://us1.discourse-cdn.com/flex016/uploads/scylladb/original/1X/233a9d524fbc97e39f08633c16b3dd2575d1d1f4.jpeg) **@Felipe\_Cardeneti\_Mendes:** I think I addressed a similar question last year, see if it sheds some light (and check the references/history - as they provide additional context) [https://forum.scylladb.com/t/are-there-any-plans-for-triggers-procedures-of-any-kind-on-the-scylladb-roadmap/889/4?u=felipemendes](https://forum.scylladb.com/t/are-there-any-plans-for-triggers-procedures-of-any-kind-on-the-scylladb-roadmap/889/4)
> 
> > ScyllaDB Community NoSQL Forum: Are there any plans for TRIGGERS/PROCEDURES of any kind on the ScyllaDB Roadmap
> 
> ![Arkam_Fahry](https://us1.discourse-cdn.com/flex016/uploads/scylladb/original/1X/f01e477e56b903cc67ca2f24dd59f5f3b1c48ea2.jpeg) **@Arkam\_Fahry:** Thanks I checked out the answer before posting here. Will using batch operations effect negatively in terms of performance.
> 
> ![Felipe_Cardeneti_Mendes](https://us1.discourse-cdn.com/flex016/uploads/scylladb/original/1X/233a9d524fbc97e39f08633c16b3dd2575d1d1f4.jpeg) **@Felipe\_Cardeneti\_Mendes:** Well, depends on the kind of batch. But if you’re far from overwhelming the server it works just fine
