Am 28.10.2014 21:42, schrieb Greg Miller:
> Can the called procedure be async? For example, making a DB request
Sure, no problem.
Procedures that are exposed via WAMP (that is, procedures REGISTERed for
remote calling) can do anything, including asynch stuff like DB access,
doing another (outgoing) async WAMP call, doing a plain asynch Ajax
thing, ...
> My guess is no. But if I'm wrong what would be the correct way to setup
> the called function?
Not sure what you are asking here, since e.g. in AutobahnPython there is
nothing to be done to allow a procedure to do asynch stuff inside - just
do it.
If you are asking specifically about doing asynch _DB_ stuff, that
depends on the language and DB you want to know about.
E.g. here is Python/Twisted/PostgreSQL:
https://github.com/crossbario/crossbar/wiki/Database-Programming-with-PostgreSQL
> If no, then I'm assuming we need to use Fibers to make it sync?
Noooo. No threads. No fibers. Asynchronous is more fun - most of the time;)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Autobahn" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
autobahnws+...@googlegroups.com
> <mailto:
autobahnws+...@googlegroups.com>.
> To post to this group, send email to
autob...@googlegroups.com
> <mailto:
autob...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/autobahnws/65341886-918b-4fc8-8e15-a23946e99dc0%40googlegroups.com
> <
https://groups.google.com/d/msgid/autobahnws/65341886-918b-4fc8-8e15-a23946e99dc0%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit
https://groups.google.com/d/optout.