This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.pressur | |
import akka.actor.{ActorRef, Actor} | |
import akka.pattern.ask | |
import scala.concurrent.duration._ | |
import scala.concurrent.Future | |
import akka.pattern.after | |
import akka.actor.Status._ | |
case class AskWithTimeout[T](actor: ActorRef, message: T) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import akka.actor._ | |
import akka.actor.SupervisorStrategy._ | |
import akka.routing.RoundRobinRouter | |
object Main { | |
val system = ActorSystem("TestActorSystem") | |
val escalator = OneForOneStrategy() { | |
case e: ActorInitializationException ⇒ | |
println("Got exception during actor start: " + e) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.akkademy | |
import akka.actor._ | |
import akka.event.Logging | |
import akka.pattern.{CircuitBreaker, ask} | |
import akka.util.Timeout | |
import com.akkademy.sapi.{GetRequest, KeyNotFoundException, SetRequest} | |
import scala.collection.mutable.HashMap | |
import scala.concurrent.Await |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package contexts.cart.cluster; | |
import akka.actor.PoisonPill; | |
import akka.actor.ReceiveTimeout; | |
import akka.cluster.sharding.ShardRegion; | |
import akka.japi.pf.ReceiveBuilder; | |
import akka.persistence.AbstractPersistentActor; | |
import contexts.cart.api.CartItem; | |
import scala.PartialFunction; | |
import scala.concurrent.duration.Duration; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package contexts.cart.cluster; | |
import akka.actor.ActorRef; | |
import akka.actor.ActorSystem; | |
import akka.actor.CoordinatedShutdown; | |
import akka.actor.Props; | |
import akka.cluster.sharding.ClusterSharding; | |
import akka.cluster.sharding.ClusterShardingSettings; | |
import akka.cluster.sharding.ShardRegion; | |
import akka.event.Logging; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Functional Programming Paradigms In Elixir | |
- Objectives: | |
- Understand functional programming a bit better | |
- Categorize and understand approaches | |
- See which approaches fit which problems | |
- Map concepts and approaches from Scala/Haskell to elixir | |
--- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule LoggingFake do | |
@moduledoc """ | |
This server is a Fake. | |
It will log the messages received. | |
Helpful stub of a genserver. | |
""" | |
use GenServer | |
require Logger | |
def handle_call(msg, _from, state) do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
theme: Sketchnote, 7 | |
build-lists: false | |
slidenumbers: true | |
autoscale: true | |
--- | |
# Functional Programming Paradigms In Elixir | |
- Objectives: | |
- Understand functional programming a bit better |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
theme: Fira, 3 | |
# Domain Driven Design (DDD) with Elixir | |
- [email protected] | |
- (we're hiring) | |
--- | |
# Intent | |
- give an introduction to DDD conceps | |
- design | |
- architecture | |
- *HEURISTICS* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo hello world |
OlderNewer