Hi,
Here's my situation: one of my views needs to call an external service (through a socket ; actually the said service is on the same server).
I don't even need to know about the service's response as I'll inquire about it asynchronously in an effort to avoid delay on the user's end.
What are the best practices here ?
Should I open a socket connection each time I want to access the service? Should I keep one open all the time in a separate thread?
Thanks in advance,
Thomas
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Thanks for the information!
Using celery was my first idea too, but here it is not practical as I'll be transferring sensitive information through the socket and I'd rather avoid having hanging around in the Celery queue.
So I guess opening the socket from inside the view code and then closing it would be OK?