Skip to content

Create a guide for consuming previously ingested events #599

Closed

Description

@briwylde08

Get awarded: up to $300 worth of XLM
Section: How-To Guides - Events: https://github.com/stellar/stellar-docs/tree/main/docs/smart-contracts/guides/events

Guide could include:

  • Understanding event ingestion - what is it and why is it important?
  • A step-by-step code guide on how to access and consume previously ingested events
  • Demonstrate how consuming events can enhance application functionality or user experience

Activity

  1. tupui commented on May 29, 2024

    @tupui
    Contributor

    I can try to propose something. I recently looked into events for a project. Worst case, what I would write here could the person taking this further 😅

  2. briwylde08 commented on May 30, 2024

    @briwylde08
    ContributorAuthor

    Sounds like a plan! For sure take a stab at it and let me know how it's going.

  3. moved this from Backlog to In Progress in Dev Docson May 30, 2024
  4. tupui commented on May 30, 2024

    @tupui
    Contributor

    I started to work on this branch https://github.com/tupui/stellar-docs/blob/599_consume_events/docs/smart-contracts/guides/events/consume.mdx

    So far I have written some intro and the code to have some events in an in-memory DB to consume. This already gives me the DB model to consume and I will write that tomorrow. I will also add some consideration about idempotency.

    I might also propose to add some information in the reference doc itself. As I was first going through all of these, I found that the example was providing a lot more info than the reference itself. In general, I needed to have read all docs about events to really understand how all of that was working and the back and forth between all docs could maybe be limited somehow.


    For reference, putting here some information from Discord:

    "consume meaning "actually making use of the event data in an application". like, you "ingested" and stored the data in a DB, and now you're "consuming" it by retrieving from the db, perhaps doing XDR decoding stuff along the way, and then using the previously ingested data in some way. i'm not very familiar with kafka, but i think having something on idempotent consumption would be useful content to have (though, not exactly what I had in mind by event consumption)"
    ...
    i know our guides (currently) are pretty js-heavy, but the idea is to (eventually/someday) have the same functionality demonstrated in python, js, go, whatever-else

  5. moved this from In Progress to In Review in Dev Docson May 31, 2024
  6. briwylde08 commented on Jun 18, 2024

    @briwylde08
    ContributorAuthor

    Hi @tupui!

    Congratulations! Your contribution to Deep Dive Docs Bounty has been accepted! 🎉
    Your submission may qualify for an award of $500 worth of XLM! One last step: please fill out this form completely and accurately. Once we review the completed form and everything checks out, we will let you know the status of your potential award!

    Please let us know if you have any questions.

    All the best,
    Bri

  7. moved this from In Review to Done in Dev Docson Jun 18, 2024
  8. tupui commented on Jun 18, 2024

    @tupui
    Contributor

    Thanks a lot @briwylde08 🙇 I am happy that I could be helpful! I filled out the form.

  9. briwylde08 commented on Jun 20, 2024

    @briwylde08
    ContributorAuthor

    Hi @tupui,

    Thank you for providing the requested information! You’ve passed KYC and we’ve logged your award payment of $500 worth of XLM, which will be sent to the wallet you designated in the next week.

    Please let me know if you have any questions.

    All the best,
    Bri

  10. tupui commented on Jun 20, 2024

    @tupui
    Contributor

    Thanks a lot! 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

  • Status
    No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions