5 subtle ways you’re using MySQL as a queue, and why it’ll bite you
1–10 of 66 posts
Re: 5 subtle ways you’re using MySQL as a queue, and why it’ll bite you
#2For best results, it's good to have at least two redis servers, one with snapshotting as a cache (fast, less durable), one with 1 second Append only files (still fast, but slower) for data you care more about.
Re: 5 subtle ways you’re using MySQL as a queue, and why it’ll bite you
#3Re: 5 subtle ways you’re using MySQL as a queue, and why it’ll bite you
#4I think, as he said, everyone shouldn't run out and replace a mysql job queue for their wordpress blog. In a great many cases it doesn't matter.
I also like how he never said "Don't use mysql as a queuing system" but "be careful of these things". I've used mysql as a queuing system, and it works fine. I looked at replacing it with a different database, but in that situation it was not worth the investment.
Signaling mysql + archiving performed work + no locks that lock more than the exact row that's being updated (and also avoiding concurrent workers acting on the same task) will take a mysql backed queuing system far. I've set up a system that processes well over 5,000 tasks / day using it.
Do I think everyone should use mysql as their queuing backend? No. People should probably use a queuing library, with persistence to a database (redis?) enabled for critical tasks. Of course, as the article said, be careful about the choice of backends.
Re: 5 subtle ways you’re using MySQL as a queue, and why it’ll bite you
#5Is the page's rendering totally busted for anyone else? Chrome on Ubuntu.
Re: 5 subtle ways you’re using MySQL as a queue, and why it’ll bite you
#6This is why Redis / *SQL is my favored stack. It just covers so many bases, you get things like safe queuing, caching, pub/sub, and weird high-performance low-durability cases from Redis, and great, safe relational support from SQL. For best results, it's good to have at least two redis servers, one with snapshotting as a cache (fast, less durable), one with 1 second Append only files (still fast, but slower) for dat…
Re: 5 subtle ways you’re using MySQL as a queue, and why it’ll bite you
#7Is the page's rendering totally busted for anyone else? Chrome on Ubuntu.
Re: 5 subtle ways you’re using MySQL as a queue, and why it’ll bite you
#8Re: 5 subtle ways you’re using MySQL as a queue, and why it’ll bite you
#9Is the page's rendering totally busted for anyone else? Chrome on Ubuntu.
However when I reloaded the page it fixed itself. In fact as the page reloads I can see the text layout first breaking and then immediately fixing itself...
Re: 5 subtle ways you’re using MySQL as a queue, and why it’ll bite you
#10MySpace used it to keep their partitioned databases in sync: http://www.microsoft.com/casestudies/Case_Study_Detail.aspx?...