Questions tagged [eventlet]

a concurrent networking library for Python that provides performance and scalability of non-blocking IO while writing simple blocking code (no callbacks) using green threads.

It uses epoll or kqueue or libevent for highly scalable non-blocking I/O. Coroutines ensure that the developer uses a blocking style of programming that is similar to threading, but provide the benefits of non-blocking I/O. The event dispatch is implicit, which means you can easily use Eventlet from the Python interpreter, or as a small part of a larger application. It's easy to get started using Eventlet, and easy to convert existing applications to use it. Start off by looking at examples, common design patterns, and the list of the basic API primitives.

License: MIT.

http://eventlet.net/

311 questions
0
votes
1 answer

Celery pool types and concurrency

I am having a hard time putting together how multi-threading concurrency works in celery. It looks like the default type to use would be -P eventlet. I am assuming that -P threads does not work because of the GIL, and there would be no concurrency…
Goro
  • 9,919
  • 22
  • 74
  • 108
0
votes
1 answer

1 million job in every minute using python-eventlet

Use Case: Read data from one server Manipulate on my server Post data to other server But need throughput 1 million per minute. More explanation:- Lets assume there are 10000 customers and for a customer I need to call 5 API and manipulate the…
Anurag
  • 1,013
  • 11
  • 30
0
votes
1 answer

eventlet - green threads on a django based web service

I have a web service that creates images from geographic features and return it to a map using django framework. This is a tiling map service (TMS) The web sercive is called through an url such: http://host.com/TMS/map_id/x/y/z.png where map_id, x,…
Below the Radar
  • 7,321
  • 11
  • 63
  • 142
0
votes
1 answer

Cooperating eventlet with system calls

My project uses eventlet and now I have to asynchronously read and write to a file(a device, actually). I tried eventlet.tpool.execute() to run the reading thread, but it blocks the main loop. My question is, how to run the reading thread…
can.
  • 2,098
  • 8
  • 29
  • 42
0
votes
1 answer

Gunicorn multi-threading with MySQL

I am trying to run a simple NGnix + Gunicorn + Django + MySQL (RDS on AWS) stack, but obviously anything happening to some MySQL query will slow down and lock down the service. To prevent that, I started using eventlet (which also plays nice with…
Nicolas Grasset
  • 453
  • 2
  • 11
0
votes
1 answer

getaddrinfo() seems to block when using eventlet

I run my Django-celery tasks using eventlet. But something is still blocking. I used eventlet's blocking detection and found out that getaddrinfo() is blocking. I read somewhere that I have to install the "dnspython" package, but it makes no…
Matthias Scholz
  • 1,015
  • 1
  • 13
  • 25
0
votes
2 answers

gevent pool.wait_available() method meaning

Look, people. We have a question about gevent.pool class and pool.wait_available() method, both code snippets 1. def fetch(url): print 'start fetching...', url data = urllib2.urlopen(url) print url,':',data.code urls =…
Ellochka Cannibal
  • 1,750
  • 2
  • 19
  • 31
0
votes
3 answers

Asynchronous operations with synchronous interface for Javascript

So I've been hearing a LOT about node.js lately. The proponents seem to tout it as second coming of Christ. This piqued my interest and I decided to read up on it. I came across multiple sources with benchmark numbers, and it clearly does an…
tldr
  • 11,924
  • 15
  • 75
  • 120
0
votes
1 answer

Eventlet with zeromq PUSH/PULL not working as expected

I am trying to create a listener/sender pair using eventlet and zeromq PUSH/PULL sockets. This is the code: import eventlet from eventlet.green import zmq from eventlet import sleep as…
Rabih Kodeih
  • 9,361
  • 11
  • 47
  • 55
-1
votes
1 answer

Python WebSockets using socketio and eventlet - cannot kill eventlet server

Im adding a websocket server to my app so it can communicate with a web-based version of itself. For this I am using eventlet. The problem i am running in to is once I start the server, I cannot get it to die. Even if i close my application, the…
aescript
  • 1,775
  • 4
  • 20
  • 30
-2
votes
1 answer

Should I run normal flask app and sockets on the same ports?

I am running a module index.py as a flask app via gunicorn, eventlet and nginx. The code is working fine but I am unable to make it run for the required time. This is the code: from __future__ import print_function import ast from collections import…
hasherBaba
  • 319
  • 5
  • 18
1 2 3
20
21