Use Flink's actor system

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Use Flink's actor system

affo
Hello everybody,

I want to do some experiments with communication across operators.
Even if arguable, I wondered if it is possible to directly use the clustered actor system used by Flink.
If so, how can I get an instance of the actor system in an Operator?

Thank you in advance

Lorenzo Affetti



Reply | Threaded
Open this post in threaded view
|

Re: Use Flink's actor system

Chesnay Schepler-3
Hello,

I don't think the actor system is exposed to operators in any way.

If you want to access it whatever it may take (reflection etc.) you
could try working your way through the metric group (through the runtime
context) into the MetricRegistry and from the into the MetricQueryService.

Regards,
Chesnay

On 12.07.2017 17:05, Lorenzo Affetti wrote:

> Hello everybody,
>
> I want to do some experiments with communication across operators.
> Even if arguable, I wondered if it is possible to directly use the clustered actor system used by Flink.
> If so, how can I get an instance of the actor system in an Operator?
>
> Thank you in advance
>
> Lorenzo Affetti
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Use Flink's actor system

Till Rohrmann
Hi Lorenzo,

apart from experimentation it's not recommended to directly use Flink's
ActorSystem, because it is an implementation detail. With Flip-6 the
ActorSystem will be further hidden and in the future we might implement a
different RPC system not relying on Akka.

Cheers,
Till

On Sun, Jul 16, 2017 at 8:11 PM, Chesnay Schepler <[hidden email]>
wrote:

> Hello,
>
> I don't think the actor system is exposed to operators in any way.
>
> If you want to access it whatever it may take (reflection etc.) you could
> try working your way through the metric group (through the runtime context)
> into the MetricRegistry and from the into the MetricQueryService.
>
> Regards,
> Chesnay
>
>
> On 12.07.2017 17:05, Lorenzo Affetti wrote:
>
>> Hello everybody,
>>
>> I want to do some experiments with communication across operators.
>> Even if arguable, I wondered if it is possible to directly use the
>> clustered actor system used by Flink.
>> If so, how can I get an instance of the actor system in an Operator?
>>
>> Thank you in advance
>>
>> Lorenzo Affetti
>>
>>
>>
>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Use Flink's actor system

affo
Thank you Chesnay and Till.

Best,
Lorenzo