-
Notifications
You must be signed in to change notification settings - Fork 227
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
Support hivemind's condenser_api #305
Comments
I'm not a huge fan of this, it makes an already convoluted api more so. I'd prefer if we move to calling all apis with their method names directly, e.g. If we want to retire an steemd method and let hive take over we can do that routing in jussi. |
is there any downside to having jussi take care of this? it seems like the ideal place to do it, even in the case of running jussi for local dev & setting up weird temporary routing. |
The issues are that
I'm definitely in favor of something like
vs
on a method by method basis. |
We should never need to do request restructuring, here or in jussi. When is that needed? As for not breaking backwards compatibility when we move some steemd calls to hive that will happen in jussi |
You're talking about the routing? My understanding is that At some point in the nearish future we have a PR that let's us eliminate this type of call entirely.
|
We need existing steemd APIs to remain accessible through jussi; we're not changing any paths, just adding the option to "upgrade" some calls to hive by adding a prefix. Example: Right now hive's "condenser_api" compat layer request/response formats are 1:1 so that we can thoroughly test and easily revert to steemd should an issue arise. In the future, we will move away from the "old" APIs to new hive methods which do not necessarily resemble steemd's at all. |
I'm with you on that @roadscape, my point is that we don't need the client-side method routing this introduces to support hive. All we need to do is use |
Things have gotten a lot simpler since this issue (and the related PR) were filed. I'l be revisiting the PR and this issue to see how much I can simplify it, possibly make it go away entirely. @jnordberg philosophically you're spot on. That's definitely the simpler way for us to do it, and where we want to quickly get. It also introduces more potential pain for users of the library. Offering this configuration option gives us the ability to change all calls to |
Hive will support apis at multiple endpoints. Specifically the steemd api, both appbase and nonappbase.
Jussi will support routing to these apis via different RPC method prefixes.
We want to support these different prefixes without requiring significant changes to codebases currently using steem-js. We also want to be able to be able to update where these methods point (change the prefixes and appbase/non-appbase structure) without needing to bump-release
steem-js.
This will allow us to keep steem-js stable while we evolve our services.
A sample customApis option.
The text was updated successfully, but these errors were encountered: