Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add python asycio backend support. #30

Open
pavlov99 opened this issue Jun 2, 2015 · 9 comments
Open

add python asycio backend support. #30

pavlov99 opened this issue Jun 2, 2015 · 9 comments
Labels

Comments

@pavlov99
Copy link
Owner

pavlov99 commented Jun 2, 2015

No description provided.

@pavlov99 pavlov99 added the ready label Aug 5, 2015
@csselo
Copy link

csselo commented Dec 11, 2015

Hi

I made a simple webservice but when I test load test, it didnt work asyc.
What must I do for asyc

@csselo
Copy link

csselo commented Dec 11, 2015

When you call synchronous web service the service processes the request and return HTTP status code 200 OK (1) if everything went as expected, or error 4xx. The call is blocked while processing and the request and can take significant time.

When web service is asynchronous the main difference is that call should return instantly with HTTP 202 ACCEPTED (2) which means that request is taken in queue but not processed yet.

http://stackoverflow.com/questions/4228387/what-does-it-mean-when-a-web-service-is-asynchronous

@pavlov99
Copy link
Owner Author

@csselo for async web service service indeed needs to return HTTP 202 on call and then push result to client on completion, say using web sockets.

@csselo
Copy link

csselo commented Dec 13, 2015

When a process take a long time, the other posts are waiting for it so it doesnt work async

@pavlov99
Copy link
Owner Author

Lets denote slow and fast methods/APIs as A and B. On client call of method A, server adds it to the execution queue and returns queue id of the task to client. At this point of time, server is free to accept other method B. Meanwhile, first task from the queue is taken by another process, which would push result to the client on completion. One of the ways to push result is to use web sockets.

@csselo
Copy link

csselo commented Dec 14, 2015

is there any backend setting?

@csselo
Copy link

csselo commented Dec 17, 2015

Hi

backend config?

@pavlov99
Copy link
Owner Author

@csselo no, as of now backend config for asyncio does not exist.

@csselo
Copy link

csselo commented Dec 18, 2015

I think it needs backend setting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants