PyConJP 2018の資料です。Django Channelsでカンバンアプリケーションを 作成した際の資料です。 関連資料: https://qiita.com/denzow/items/046f3c8b9bd8d3378eb4 https://github.com/denzow/DjangoDeKanban
![DjangoとVueで作るカンバンアプリケーション](https://cdn-ak-scissors.b.st-hatena.com/image/square/151dd510205fde8418382d39aba66d3d16080629/height=288;version=1;width=512/https%3A%2F%2Ffiles.speakerdeck.com%2Fpresentations%2Fdc54a9cde9374b3b8b449585aa28ebef%2Fslide_0.jpg%3F10783289)
The asynchronous event-driven I/O of Node.js is currently evaluated by many enterprises as a high-performance alternative to the traditional synchronous I/O of multi-threaded enterprise application server. The asynchronous nature means that enterprise developers have to learn new programming patterns, and unlearn old ones. They have to undergo serious brain rewiring, possibly with the help of elec
まだ深くソースコードを読めていないので「非同期Webサーバー」という言い方が正しいかどうかは自信がない。https://github.com/fiorix/cyclonecycloneはtornadoと非常によく似たAPIをもっている。例えば、お馴染みのHello Worldならば次の通り。 # -*- mode: python -*- # helloworld.tac import cyclone.web from twisted.python import log from twisted.internet import reactor from twisted.application import service, internet class MainHandler(cyclone.web.RequestHandler): def get(self): self.write("He
非同期 Tatsuhiro Ujihisa http://ujihisa.blogspot.com/ 一般的な話 非同期とは? スレッド、プロセス プロセス生成 system, IO.popen, Open3.popen3, fork 非同期とは? "非"非同期とはすなわち逐次処理。上から下へ一本の処理が進む 非同期の場合、複数の処理が同時に進む スレッドとプロセス Rubyを立ち上げると、OSが管理するプロセスが一つ立ち上がる Rubyでスレッドを作ると、Rubyプロセスの中で仮想的に処理の流れが増える Rubyでプロセスを作ると、OSが管理するプロセス自体が増える スレッドの作り方 Thread.start do something end プロセスの作り方 systemで&をつける IO.popenする forkする それぞれ詳しく解説すると、 systemで& system 'ls
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 #!/usr/bin/env python def run_async(func): """ run_async(func) function decorator, intended to make "func" run in a separate thread (asynchronously). Returns the created Thread object E.g.: @run_async def task1(): do_something @run_async
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く