inertia Ⓐ³ avatar

Meeseeker Handling JSON-RPC Batch - 0.0.9

inertia

Published: 08 Oct 2019 › Updated: 08 Oct 2019Meeseeker Handling JSON-RPC Batch - 0.0.9

Meeseeker Handling JSON-RPC Batch - 0.0.9

I added the ability for meeseeker to degrade gracefully if the node does not support json-rpc-batch. This is determined by an error response code 413 (Request Entity Too Large), which will cause meeseeker to retry the original request, but with a maximum request size of 1, instead of the default of 50 defined by steem-ruby.

This should allow meeseeker to work with more nodes, or even a private node, that is not configured with jussi as a reverse proxy.

Typically, meeseeker doesn't need to use json-rpc-batch under normal circumstances. Usually, batched requests would be a solution for when meeseeker falls behind on blocks. But as long as it doesn't fall too far behind, avoiding batched requests shouldn't impact performance.

What Changed ...

There's only one commit for 0.0.9.

Degrade gracefully if the node doesn't support json-rpc-batch a62c98e

This adds a fallback handler that sets the number of requests in a batch to one.


To update your gem:

gem update meeseeker

Previous posts:

Leave Meeseeker Handling JSON-RPC Batch - 0.0.9 to:

Written by

I can see the fnords.

Read more #redis posts


Best Posts From inertia Ⓐ³

We have not curated any of inertia's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From inertia Ⓐ³