Skip to content

Regarding Update balances function in transaction.go #125

Closed Answered by jerry-enebeli
darahask asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @darahask, Thanks for the kind words!

So this is how Redis is used. It currently does a couple of things like you mentioned:

  1. Locks
  2. Caching
  3. Job queues

For the job queues, there are a couple of jobs it manages (using the workers):

  1. Transaction processing. Check here
  2. Typesense indexing. See example here
  3. Sending Webhooks. See example here

The method queueIndexData is for indexing to Typesense (maybe I should rename it 🤔)

// queueIndexData enqueues a task to index data in a specified collection.
//
// Parameters:
// - id string: The ID of the data to index.
// - collection string: The name of the collection to index the data in.
// - data interface{}: The data to be indexed.
//
// Returns:

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@darahask
Comment options

@jerry-enebeli
Comment options

@darahask
Comment options

Answer selected by jerry-enebeli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants