Skip to content

Upgrade to Akka 2.6.11 #5060

Closed
Closed
@vrann

Description

@vrann

For any new features which uses Akka actors it would makes sense to start using Behavior-based construction of actors with the Akka Typed. This is the way to construct actors encouraged by Akka for any new functionality. In order to use Akka Typed, it should be supported by the Akka version used in OpenWhisk. At the same time no changes needed to the Akka Classic actors. Upgrading to the newest Akka version would allow to use all latest features of the Akka, while keeping it compatible with almost everything of the Akka 2.5.x that is been used in OpenWhisk so far.

In our case we are implementing a new type of invocation system which heavily uses Akka actors.

This is an enhancement.

Based on Migration Guide 2.5.x to 2.6.x the few areas has to be touched in the Open Whisk:

  • to get rid of implicit custom ActorMaterializer and letting Akka to substitute with the system-wide one
  • to upgrade to Akka Http 10.2.3. Having that ConnectionContext.https was deprecated, there is no good replacement for it without upgrading from Akka Http 10.1.x
  • also, having AkkaSSLConfig was deprecated, few changes needed to the way the Https has been set up when host name verification is disabled
  • RestartSink.withBackoff accepts RestartSettings as a parameter in akka 2.6.x
  • akka.actor.FSM.setTimer => akka.actor.FSM.startTimerAtFixedRate
  • akka.actor.Scheduler.schedule => akka.actor.Scheduler.scheduleAtFixedRate

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions