stellar / stellar-docs

Documentation for Stellar
https://developers.stellar.org
Apache License 2.0
66 stars 129 forks source link

CDP: Add BufferedStorageBackend usage to Stellar developer docs #1084

Open urvisavla opened 1 week ago

urvisavla commented 1 week ago

What problem does your feature solve?

In https://github.com/stellar/stellar-docs/issues/1012 we added Galexie to Stellar’s public developer docs. This includes an introduction to Galexie and a guide on how to run it—essentially an admin guide that focuses on the publisher side. However, we also want to include documentation for the consumer side, specifically on how to use BufferedStorageBackend to read data from the data lake.

What would you like to see?

What alternatives are there?

sreuland commented 1 week ago

Other public copy on CDP consumption side is actually referencing the newer functional wrapper around BSB, cdp.ApplyLedgerMetadata(), rather than using BSB directly, can this be leveraged here to simplify the docs needed? i.e. document preference towards usage of ApplyLedgerMetadata() and it's companion helper function, DefaultBufferedStorageBackendConfig() , ideally this equates to less writeup, maybe briefly mention at high level how it encapsulates BSB usage so client doesn't have to?

urvisavla commented 1 week ago

Other public copy on CDP consumption side is actually referencing the newer functional wrapper around BSB, cdp.ApplyLedgerMetadata(), rather than using BSB directly, can this be leveraged here to simplify the docs needed? i.e. document preference towards usage of ApplyLedgerMetadata() and it's companion helper function, DefaultBufferedStorageBackendConfig() , ideally this equates to less writeup, maybe briefly mention at high level how it encapsulates BSB usage so client doesn't have to?

Yes, that makes more sense.