Skip to content

Instantly share code, notes, and snippets.

@FyberEngineers
Created January 15, 2020 08:36

Revisions

  1. FyberEngineers created this gist Jan 15, 2020.
    5 changes: 5 additions & 0 deletions akka2.scala
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    Line 83 - 'processMessage' executes 'around'(before and after) message processing by the actor(jpg, line 88)
    Line 84 - Takes start time before the message being processed
    Line 88 - Invokes the method that handles message is processing
    Lines 92-94 - Latency calculations
    Lines 96-99 Updates metrics cache