Skip to content
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

Configurable network latencies in the configuration #161

Open
hanish520 opened this issue Jun 6, 2022 · 2 comments
Open

Configurable network latencies in the configuration #161

hanish520 opened this issue Jun 6, 2022 · 2 comments

Comments

@hanish520
Copy link

WAN-based deployments can be simulated through gorums with configurable delay in the configuration.
currently this issue is a placeholder, more details to be added upon analyzing GRPC

@hanish520
Copy link
Author

I have looked into the dial options, call options, and server options provided by the grpc.
It does not provide any API to delay the communication for a specific time.
Through there is a convoluted way of doing it, by writing a wrapper around the default encoding mechanism to induce the configured delay.
Not sure is it worth it.

@meling
Copy link
Member

meling commented Feb 7, 2024

I think this could possibly be done with an interceptor that delays

  • Sending with a client-side interceptor
  • Receiving with a server-side interceptor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants