IRC Logs for #circuits Tuesday, 2015-03-03

*** green1 has joined #circuits00:06
*** ablest1980 has joined #circuits00:44
*** ablest1980 has quit IRC00:46
*** ablest1980 has joined #circuits00:47
*** ablest1980 has quit IRC00:49
*** ablest1980 has joined #circuits00:53
*** ablest1980 has quit IRC00:53
*** ablest1980 has joined #circuits00:53
*** ablest1980 has quit IRC00:55
*** ablest1980 has joined #circuits00:55
*** ablest1980 has quit IRC01:06
*** ablest1980 has joined #circuits01:07
*** ablest1980 has quit IRC01:24
*** ablest1980 has joined #circuits01:26
*** ablest1980 has quit IRC01:40
*** edk has quit IRC02:32
*** edk has joined #circuits02:34
*** green1 has quit IRC03:34
*** Osso has joined #circuits08:38
*** Osso has quit IRC10:07
*** Osso has joined #circuits10:09
*** Romster has quit IRC14:16
*** Romster has joined #circuits14:22
*** ninkotech has quit IRC14:27
*** ninkotech has joined #circuits14:39
rioti'm writing a database backend and am wondering: what is the best way to fetch and store database data with circuits? I'll have ~10-20 clients writing and reading a lot of mongodb stored stuff. should i actually do this via events?15:42
riotthen i'd have to store state and await the response, isn't there a better way?15:43
*** Osso_ has joined #circuits17:14
*** Osso has quit IRC17:14
*** ablest1980 has joined #circuits18:10
*** ablest1980 has quit IRC18:22
*** Zimsky has quit IRC18:34
*** green1 has joined #circuits18:55
*** Zimsky has joined #circuits19:21
prologicriot, use a thread pool :)20:02
prologicasync db stuff is hard20:02
prologica lot of dbs don't do async very well20:02
riotprologic: hm, i don't think so: http://css.dzone.com/articles/requests-python-and-mongodb20:36
riotbut, yeah, threadpool, it seems to be20:36
riotbut then, how do i get data from components to the database component and vice versa?20:40
*** Osso has joined #circuits20:59
*** Osso has quit IRC21:04
prologicriot: coroutines :)21:34
prologicyou know... that yield/call/wait stuff in circuits :)21:34
prologichaha21:34
prologicyou can also have a threaded Worker pool21:34
prologicWorker().register(...)21:35
prologicby default unless you pass process=True21:35
prologicthe Worker is a threadpool21:35
prologicwrapping around multiprocessing.pool.ThreadPool21:35
prologicriot: of course... it would be nice if someone ported or added support for circuits wrt async mongodb support21:40
prologicif you have a look at motor21:40
prologicmaybe that can be ported to circuits21:40
prologicor support added21:40
prologicbe nice :)21:40
*** ablest1980 has joined #circuits21:45
*** ablest1980 has quit IRC21:47
*** green1 has quit IRC21:50
*** green1 has joined #circuits21:51
*** Osso has joined #circuits22:56

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!