MySQL Forums
Forum List  »  Performance

Re: Eliminate filesort in update query
Posted by: Matzz -
Date: October 01, 2014 06:49AM

I have to use queue. Before starting workers I have list of 800k tasks. Workers could produce new ones. What is more, tasks has priorities. Tasks persistence is also very important think in my application. I could not lost task which was not executed when worker died.
I could some message brokers like Kafka or Rabbit but as far as I know they do not provide priorities. Another options is some Actor based parallelism (eg. Akka) but task management would be difficult. Mysql gives me possibility to delete, update or suspend tasks. I could retrieve failed one and see statistics.
Executing my task require http request, so mysql is not the bottleneck now (it was when poll query took 30s, now it is less than 1).

PS
My fork of bramp/db-patterns - github.com/Matzz/db-patterns/ (including mysql queue with priorrities, statuses etc)

Options: ReplyQuote


Subject
Views
Written By
Posted
2492
September 23, 2014 02:48AM
1007
September 23, 2014 09:59PM
941
September 24, 2014 01:25AM
985
September 24, 2014 08:40PM
988
September 25, 2014 05:48AM
920
September 26, 2014 04:39PM
Re: Eliminate filesort in update query
970
October 01, 2014 06:49AM
985
October 03, 2014 10:09PM
1019
October 04, 2014 03:13AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.