美文网首页DJANGO GO GO GO
Django and UDP server

Django and UDP server

作者: fgxs | 来源:发表于2019-04-21 03:18 被阅读0次

First of all, use twisted to build a server to listen to UDP

Secondly: If you have unique constraints you WILL run into database deadlock issues if there are multiple UDP clients so want to use some form of serialization for your DB writes - assuming your database transactions are somewhat atomic. Celery will probably do that for you, but remember to run the worker with --concurrency=1. Especially if your Django views do more than one .save()on a model instance.

Source:https://stackoverflow.com/questions/19222546/django-and-udp-server

相关文章

网友评论

    本文标题:Django and UDP server

    本文链接:https://www.haomeiwen.com/subject/nfvoiqtx.html