> poetry run daphne -b 0.0.0.0 -p $PORT boshi.asgi:applicationWith the help of asynchronous programming, we can utilise the idle time because of IO operations to process more requests at the same time in a concurrent fashion
> poetry run daphne -b 0.0.0.0 -p $PORT boshi.asgi:application
async for author in Author.objects.filter(name__startswith="A"):
book = await author.books.afirst()
async def make_book_with_tags(tags, *args, **kwargs):
book = await Book.objects.acreate(...)
await book.tags.aset(tags)
> poetry run uvicorn --loop uvloop --port $PORT boshi.asgi:application The combination of horizontal scaling (parallel task processing) and asynchronous programming (concurrency) is the best for higher request numbers.