In my last blog, I promised to provide a step-by-step guide to implementing phone storage. The main purpose of storing data on the phone (offline support) is to reduce load time and optimize downloads. In this blog, I am sharing my experience using storage with Ionic 2. There are different ways of integrating storage with … Continue reading Steps To Follow For SQLite Storage In Ionic 2
blog
RoR Tips & Tricks Series – #2
Tip : count is incorrect if used with limit in mongoid Database : Mongodb 1. campaigns = Campaign.all campaigns.count => 211943 2. campaigns = Campaign.limit(1000) campaigns.count => 211943 campaigns[1001] => nil I was expecting count as 1000 for second query, but it came out to be same as first one. But actual objects stored in … Continue reading RoR Tips & Tricks Series – #2
Why Sidekiq “reliable_fetch’’ Is Not Consistently Being Reliable
Rails development and Sidekiq go hand in hand. One or the other time you must have gone into problem where jobs go missing. Wondering why?
Sahil explains!!
Recently, in one of my projects, I came across a situation wherein I was required to parse a CSV uploaded by the end user. For performance reasons, I choose to create a new Sidekiq worker for each row in my CSV. All these rows (workers) were running in parallel (standard Sidekiq behaviour). I wanted to execute some logic ONLY after all rows (workers) had finished processing. Sidekiq Pro let’s you do this by creating a batch of workers. Sidekiq has a Batch API that provides success and failure callbacks for such scenarios.
Everything was working well in development and staging environment. Until a day when a customer reported that he is not receiving success/failure report for his jobs. I tried to reproduce the scenario described by the user but, couldn’t. Not even for the same customer account. But, then I was able to reproduce it and again I couldn’t.
Confused???…
View original post 529 more words
