Skip to content

Instantly share code, notes, and snippets.

@d-smith
Created August 29, 2014 16:23
Show Gist options
  • Save d-smith/fd6cbe45caecd2dd8cb5 to your computer and use it in GitHub Desktop.
Save d-smith/fd6cbe45caecd2dd8cb5 to your computer and use it in GitHub Desktop.
Wildcard in akka actor path configuration
actor {
deployment {
/fault-response-actor {
router = round-robin
nr-of-instances = 5
}
/add-note-request-actor {
router = round-robin
nr-of-instances = 5
}
/add-note-json-request-actor {
router = round-robin
nr-of-instances = 5
}
/add-note-response-actor {
router = round-robin
nr-of-instances = 5
}
/retrieve-note-actor {
router = round-robin
nr-of-instances = 5
}
/retrieve-note-list-actor {
router = round-robin
nr-of-instances = 5
}
/reply-checker-actor {
router = round-robin
nr-of-instances = 5
}
"/add-note-request-actor/*/add-note-service-actor/note-data-actor" {
router = round-robin
nr-of-instances = 5
}
"/add-note-json-request-actor/*/add-note-service-actor/note-data-actor" {
router = round-robin
nr-of-instances = 5
}
}
}
@d-smith
Copy link
Author

d-smith commented Aug 29, 2014

Wild card in path name is handy if there are routers in the path (which assign their own actor names, e.g. a$, b$, etc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment