Confirmed users
192
edits
(adding architecture bit) |
mNo edit summary |
||
| Line 77: | Line 77: | ||
1. The message may be deleted after it has been sent. The only problem in | 1. The message may be deleted after it has been sent. The only problem in | ||
this case is that there is still no guarantee it has been processed, and | |||
acquiring a lock to consume a message, and the resulting write-back to | |||
delete it is expensive. | |||
2. One consumer per queue/partition. This requires some guess-work up-front | 2. One consumer per queue/partition. This requires some guess-work up-front | ||
about how many consumers will be around. Since consumers can consume from | |||
multiple queue/partition's at once, there needs to be at least as many | |||
partitions for a queue, as desired consumers. The advantage with this | |||
approach is that locking is only necessary when adding/removing consumers | |||
to ensure one consumer per partition. | |||
This MessageQueue project goes with the second option, and only incurs the | This MessageQueue project goes with the second option, and only incurs the | ||