berty / go-orbit-db

Go version of P2P Database on IPFS
https://berty.tech
Apache License 2.0
405 stars 55 forks source link

Using orbit and pubsub in the same run causes race conditions #94

Closed mar1n3r0 closed 2 years ago

mar1n3r0 commented 2 years ago

Scenario:

  1. Orbit put
  2. Pubsub publish before/after
  3. Every 5 requests the orbit put request gets stuck in pending state

What I have tried so far:

  1. Invoke them in separate goroutines
  2. Implement time sleep between them
  3. Change the order of invokation

None of those seem to get passed the 6th request.

Has anyone faced the same issue?

mar1n3r0 commented 2 years ago

Seems to be a rate limit on pubsub rather than an issue with orbit.