Laravel Vapor - SQS queue #427
Replies: 2 comments 1 reply
-
I was wondering, did you manage to make it work? |
Beta Was this translation helpful? Give feedback.
-
I believe you can you use WithoutOverlapping middleware, what will uses aggregate uuid as key, if by default vapor offers max processes at queue. It works with atomic cache locks. As also, there was a discussion about race condition on persisting on event store. Now it supports unique composite key on aggregate uuid and version. And you can try to use retry middleware on command bus, if exception on unique key was catched in concurrent threads. |
Beta Was this translation helpful? Give feedback.
-
Hello,
According to Laravel Vapor docs: In addition, the concurrency value must be an integer between 2 and 1,000.
According to this spatie/laravel-event-sourcing docs: You should make sure that the queue will process only one job at a time.
I also tried the database driver with default config (except queue = env('EVENT_PROJECTOR_QUEUE_NAME') on localhost, but with no luck. Basically:
Is there a way to setup event sourcing package with Laravel Vapor and SQS queue, so that jobs are executing synchronously?
Can you help me out ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions