After the initial release of meeseeker, I came up with a few more improvements. At first, these changes were pretty small and only warranted small updates and, as such, I felt like all I had to do was update the original post. But now, there's a bit more to go over. I'll just enumerate all of the changes since the first announcement ...
At the initial release, SUBSCRIBE
wasn't available, so once I added it, I edited the original post. In a nut-shell, you can subscribe to channels so your app is notified when any of these are added: block/transaction/op.
Full description: https://github.com/inertia186/meeseeker#using-subscribe
For this release, I added a bit more detail:
Normally, block headers are added to the
steem:block
channel. This requires one additional API call for each block. If you don't need block headers, you can configure thesteem:block
channel to only publish with theblock_num
:MEESEEKER_INCLUDE_BLOCK_HEADER=false meeseeker sync
This means that when a the steem:block
channel executes the message callback, instead of just this:
{"block_num":29861068}
... you get all this:
{
"block_num":29861068,
"previous":"01c7a4cb4424b4dc0cb0cc72fd36b1644f8aeba5",
"timestamp":"2019-01-28T20:55:03",
"witness":"ausbitbank",
"transaction_merkle_root":"a318bb82625bd78af8d8b506ccd4f53116372c8e",
"extensions":[]
}
As I said, the reason this is optional is because it represents one extra API call per block.
I also added a way to subscribe to custom_json.id
as channels.
In addition to general op channels, there's an additional channel for
custom_json.id
. This option must be enabled:MEESEEKER_PUBLISH_OP_CUSTOM_ID=true meeseeker sync
So this is cool becuse if you're interested in streaming just a particular sub-set of custom_json
, this will notify you when a particular id
shows up.
For example, subscribe steem:op:custom_json:sm_team_reveal
will only trigger on that particular Steem Monster op.
I also added an option to allow for non-expiring keys:
If you never want the keys to expire (not recommended), set
MEESEEKER_EXPIRE_KEYS
to -1:MEESEEKER_EXPIRE_KEYS=-1 meeseeker sync
It might be useful if you don't care how big your redis storage is. Not sure how useful this might be. Would require benchmarks.
I also did a bit of a refactor on the Meeseeker::BlockFollowerJob#perform
method to break it up a bit. This shouldn't affect performance. It's just for clarity.
Anyhow, I made this a pre-release (0.0.3pre1
). If you want to try it out, just update your gem with:
gem update meeseeker --pre
Rakefile
got some comments, butlock_follower_job.rb
ormeeseeker_test.rb
got none, try commenting more.Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Need help? Chat with us on Discord.
[utopian-moderator]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks. Wow, there’s a lot of “cognitive load” involved in utopian tagging. On the other hand, I can’t imaging what the mods have to go through.
You guys are amazing.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thank you for your review, @helo! Keep up the good work!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
ǝɹǝɥ sɐʍ ɹoʇɐɹnƆ pɐW ǝɥ┴
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hi @inertia!
Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 6.579 which ranks you at #146 across all Steem accounts.
Your rank has not changed in the last three days.
In our last Algorithmic Curation Round, consisting of 281 contributions, your post is ranked at #105.
Evaluation of your UA score:
Feel free to join our @steem-ua Discord server
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hi, @inertia!
You just got a 1.42% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
This post has been included in the latest edition of SoS Daily News - a digest of all you need to know about the State of Steem.
Editor of the The State of Steem SoS Daily News.
Promoter of The State of Steem SoS Weekly Forums.
Editor of the weekly listing of steem radio shows, podcasts & social broadcasts.
Founder of the A Dollar A Day charitable giving project.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @inertia! You've received the first place upvote this week :)
Thanks for participating in the Seeking Open-Source Projects contest! If you haven't already. Swing by our Discord and say hello https://discord.gg/MacHHF9
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit