-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API to return all past event instances including past ingredient states #287
Comments
BTW, the alternative algebra we are now considering resembles trait AlternativeOrderService[F[_], Stream[_, _], OrderRequest, OrderHandle, OrderState] {
/** Command that instantiates a recipe */
def placeOrder(request: OrderRequest): F[OrderHandle]
/** Emits current accumulated state, and subsequent states in the future */
def getOrderState(id: OrderHandle): Stream[F, OrderState]
} This hides the implementation detail that |
Hello Sander, The possibility to get Ingredients provided by a specific Event is indeed gone. The idea with Baker is you have Events and you have Ingredients. I am sorry to say that we are not planning to bring it back. I think your last question hits the nail on the head, we are missing guide lines/best practices for developing a API with Baker. Regards, Tim Linschoten |
Hello Sander, The possibility to get Ingredients provided by a specific Event is indeed gone. The idea with Baker is you have Events and you have Ingredients. I am sorry to say that we are not planning to bring it back. I think your last question hits the nail on the head, we are missing guide lines/best practices for developing a API with Baker. Regards, Tim Linschoten |
Thank you for the clear response @Tim-Linschoten. Issued #288 to add to the release notes. |
With Baker 2, we used
Baker.eventsWithTimestampAsync
to implement an algebra resemblingThe Baker method enabled us to obtain all past event instances (
RuntimeEvent
, similar to currentEventInstance
). These included a map of the associated ingredient values. This way we could event-sourceOrderService
client state, withOrderService
providing the event store by polling Baker.It looks like in Baker 3.0.0-RC, this method is gone and we can only obtain, using
Baker.getRecipeInstanceState
:Do you plan to bring back to Baker 3 a Baker API that enables us to retrieve past
EventInstance
s including past ingredient values?Have you developed best practices designing Baker-driven service APIs that would lead to different design decisions?
The text was updated successfully, but these errors were encountered: