-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Implement ADR 032: Typed Events #7563
Comments
Resolve road blocks outlined in this comment |
Hey @akhilkumarpilli, what's the status of this issue? What are the next steps so that all modules only emit typed events? |
This issue tendermint/tendermint#5978 needs to be resolved first. Once after that, we can start implementing ADR-032 in all modules. |
We will be providing a postgres indexer, can this be done through that? As for the current indexer, we may say it is feature complete and not work on it anymore. |
Hope it will support. We will try to implement and test this once after postgres indexer is integrated. Thanks. |
@marbar3778 can we discuss this next friday in our architecture call to align on if there's any tendermint blockers here? |
I've been doing some benchmarking with emitting very large typed events and have found that the Can a more efficient solution for typed events be worked on? |
Based on on last architecture call, it sounds like the path forward for this may be to create a custom event system within the SDK that bypasses Tendermint. With that approach, event indexing could happen in a separate thread reducing the impact of marshaling JSON. A custom approach would also allow us to tune things to the data model we're using (i.e. dealing with quotes properly). |
@akhilkumarpilli We'd like to discuss this at our next architecture call on Friday July 2. @anilcse will invite you to that call. |
@clevinson I am not sure whether I can be available for call as I need to undergo a minor surgery on friday. @anilcse will help in discussions regarding typed events incase of my absence. |
Hi, I have a question on Typed Events. I noticed because of unneeded marshalling we get strangely quoted values in the event log:
Main reason I'm asking is because we're subscribing to those events and now have to "unquote" them for no reason. Maybe there is another way of subscribing that lets read Typed Events somehow. But current one (via RPC - Tendermint RPC) gives access to already parsed (quoted) data. |
@tac0turtle should we remove TypedEvents as we are not really using them widely? |
Typed events are still supported in core (https://github.com/cosmos/cosmos-sdk/blob/main/core/event/service.go#L19-L22), so we shouldn't kill them. We just don't need to migrate all existing modules to typed event. |
That is equivalent to the snippet above. |
Summary
Implement ADR 032: Typed Events as documented in #7474
Pros
ref: https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-032-typed-events.md#positive
ref: Detailed code example of publishing events
Cons
ref: x/ibc: implement ADR 032 typed events #7762 (review)
Roadmap
init: Implement ADR 032 typed events #7564 Implement
EmitTypedEvent
andParseTypedEvent
functionsModules: create proto Events for modules, replace all
EmitEvent
s withEmitTypedEvent
sx/ibc (x/ibc: implement ADR 032 typed events #7762)Update events documentation per module
The text was updated successfully, but these errors were encountered: