Some more questions #215
-
Hi @hnaderi a. You have used the outbox pattern, which allows us to write The first b. How does Edomata fit in the context of microservices where each microservice should have its own database.. in this case, each microservice will write its event of streams in its database. Right? Suppose we have an aggregate root c. There are two different table schemas.
CREATE TABLE IF NOT EXISTS $table (
CREATE TABLE IF NOT EXISTS $table( d. Does Edomata support Ad-hoc polymorphism (monads / type classes) out-of-the-box? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Hi @cloudcompute , B. Each
In your example, if category, tag and pricing are entities or value objects in product, so it's just like fields of the case class that serves as the state, and all the events for that aggregate root are together in one journal. C. Journal is where the events are stored, and Outbox is the place that stores the notifications.
These fields are used to track the history of system changes and are commonly used in event sourced systems.
D. I'm not sure what do you mean by that, can you elaborate more? |
Beta Was this translation helpful? Give feedback.
-
@hnaderi, Sounds great ! A.
So this means Skunk would read the Edomata's domain models ( OR
Do you mean to say that a B. C.
Being naive to functional programming, I am not sure whether I used the correct terms. But let me try to explain this by an example: We have a The service's D. E. Great if you can explain causation and correlation with a real-world use case. Thank you very much. |
Beta Was this translation helpful? Give feedback.
-
Wonderful replies. I am sorry for asking so many questions, your guidance would help me put on track. A. So for my B. C. I hope it won't be difficult to For example, I want that minimal data should be entered in the payload column of an event row i.e. on the change that occurred, Or, in the outbox table want to D. Is
E. You have implemented Snapshotting too which is quite tough. If using event-based microservices and Kafka as an event broker, F. Does event sourcing support Regards |
Beta Was this translation helpful? Give feedback.
-
Hi I know that the event streaming and event sourcing are different things. Event sourcing has nothing to do with Kafka. CQRS can be achieved in either of the two ways: a. b. I will watch the video that you had shared.. Martin Fowler is a genius. Thank you for your detailed response. I will get back to let you know about my proceedings relating to Event sourcing.. may take some time. |
Beta Was this translation helpful? Give feedback.
A. The tables are created when the back-end is setting up.
The table structure differs for event-sourcing style and the CQRS one. In event-sourcing, the journal table contains all the events, each row is a unique event.
In CQRS style, you can either have a single table with jsonified states per row, or you can implement your own repository, which can be a normalized database schema. See this discussion for more info.
B. Outbox table in edomata is very similar to the example diagram in your reply.
C. These are logics implemented in the application layer when handling a command, there are no limitations in implementing logic when you use edomata.
Given that the command contains the informat…