question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

question: idiomatic to use one topic?

See original GitHub issue

hello,

i’m quite new to camunda and bpmn, so please for please forgive if this sounds stupid. is it idiomatic, recommended, or even necessary to have one (kafka) topic for all the messages flowing through the system? i’m hoping that this show-case repo uses only one in order to keep the complexity low. but i would expect dedicated topics between the stages.

one topic for all doesn’t seem to me be good option from a scalability and performance perspective. having each listening party on the event-bus to read, evaluate, and optionally discard a message is costly. the more stages, the more event-/command-messages there will be, and the more events each component/listener needs to consume/process.

at least this is how i explain, why i can see a big difference in processing time of each order when placing 1 order vs 1000 orders at a time. (admitted, the later use-case is not frequent, but can regularly arise when the “order” application would have a temporary outage for some time and would need to catch up after being brought up again.)

i’ve extended the code a little bit by measuring the duration of the examples individual stages: https://github.com/xitep/flowing-retail/commits/pete/customization

i’m based on a few commits behind your current master but there were no significant changes i believe. you can run the applications via mvn -f <app> exec:java, follow the “order” application’s log to see the timings per order and then place for example 1000 orders using curl:

curl -X PUT 'http://localhost:8090/api/cart/order-many?customerId=123&numOrders=1000'

maybe i’m misinterpreting something, but i appears that payment, fetching and shipping goods get more costly the more orders there are in the pipeline which i would not expect.

many thanks for clarifications in advance.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
berndrueckercommented, Feb 1, 2018

Hi Xitep. There is an awesome blog post from Martin Kleppman about this topic available: https://martin.kleppmann.com/2018/01/18/event-types-in-kafka-topic.html. Cheers Bernd

0reactions
xitepcommented, Jan 10, 2018

yeah … makes sense. thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Idiom Conversation Questions - Print Discuss
When you hear that something is popular, do you try to jump on the bandwagon? a piece of cake. What is difficult for...
Read more >
Idioms Conversation Questions - Business English Resources
Idioms Conversation Questions. Below is a collection of conversation questions that require students to understand and use some common idioms.
Read more >
Talk Time Conversation Plan Topic: Idioms and Slang Let's ...
In pairs for 5 minutes, ask and answer these questions: • Do people in your home country use idioms or slang? Do the...
Read more >
20 English Idioms You Can Use In Everyday Conversation!
Learn these 20 everyday English idioms to advance your conversation skills, sound more fluent and better at conversation in English today!
Read more >
20 English idioms that everyone should know ‹ GO Blog
1. Under the weather ... How do you use it? In England we love to talk about the weather and will do so...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found