Sunday, October 15, 2017

Asyncio Tarantool Queue: Get in the Queue

DZone Database Zone
Asyncio Tarantool Queue: Get in the Queue
Asyncio Tarantool Queue: Get in the Queue

In this article, I’m going to pay specific attention to information processing using Tarantool queues. I’ll show the way that we use them to solve certain tasks and I will specifically describe our work with Tarantool Queue in Python with asyncio.

The Task of Notifying an Entire User Base

Mail.Ru runs several media sites, like News, Auto, Lady, Health, Hi-Tech, etc. Each one of them is visited by millions of users daily. The sites are adapted for mobile devices and the majority of them offer a touchscreen version. For the convenience of our users, we’ve created the News mobile application, which is quite popular on Android and iOS devices. Basically, when a “hot” piece of news is published, the user receives a push message. It goes something like this: the chief editor chooses a piece of news, presses “fire” on a management platform, and that’s it — go! But what next? We need to send out the news as quickly as possible to all subscribers.

No comments:

Fun With SQL: Functions in Postgres

DZone Database Zone Fun With SQL: Functions in Postgres In our previous  Fun with SQL  post on the  Citus Data  blog, we covered w...