Order of execution of messages

41 views
Skip to first unread message

Shiva Ketabi

unread,
Apr 27, 2015, 9:31:30 PM4/27/15
to beehi...@googlegroups.com
Hi

I was wondering if the emitted messages are executed in parallel or sequential?
In my code I want them to run sequential, but I guess they are not. This is how I used them:
    bh.Emit(m1)
    bh.Emit(m2)
...

Thanks,
Shiva

Soheil Hassas Yeganeh

unread,
Apr 27, 2015, 9:39:07 PM4/27/15
to Shiva Ketabi, beehi...@googlegroups.com
Hi Shiva,

Messages emitted in the same go-routing/bee/thread should be received
in sequence if they are mapped to the same mapped cell (ie, processed
by the same bee).

That's not the case, if you do:

go bh.Emit(m1)
go bh.Emit(m2)

or when m1 and m2 are mapped to different cells.

Can you send me the snippet?

Soheil
> --
> You received this message because you are subscribed to the Google Groups
> "beehive-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beehive-dev...@googlegroups.com.
> To post to this group, send email to beehi...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beehive-dev/8025ce15-9147-430e-8bed-9dae4fb89d1a%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Shiva Ketabi

unread,
Apr 27, 2015, 9:45:01 PM4/27/15
to Soheil Hassas Yeganeh, beehi...@googlegroups.com
They are mapped to different cells, so that's the reason.
Thanks,
Shiva

Soheil Hassas Yeganeh

unread,
Apr 27, 2015, 9:53:54 PM4/27/15
to Shiva Ketabi, beehi...@googlegroups.com
Yes, msg's mapped to different cells will be processed by different
bees, and they will run in parallel. If you need to see to messages in
sequence, they should at least share one mapped cell.

-- Soheil
> https://groups.google.com/d/msgid/beehive-dev/CAJAPc2_k%3DyakPt6y_e5A-m%3Dez-8jSL_GhSymRDtYDMJULLs91Q%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages