Skip to content

How to deploy application.conf file to configure Akka-Http #2

Description

@bhattacharyyasom

I am trying to use this template . I need to create a new dispatcher for blocking operations. But i cannot make Akka http read the application.conf file. Help ?

Now i cannot figure out a way to override the actor settings like adding a new dispatcher etc . I also cannot override the default port number to intercept the requests. I intend to handle the blocking requests on a different dispatcher with a thread pool.
I understand i need to create a application.conf to make it work. I have created a src/main.resources folder that has application.conf but it is are not being read. Can some one guide me with this ?

My application.conf looks like this,

my-blocking-dispatcher {
  # Dispatcher is the name of the event-based dispatcher
  type = Dispatcher

  # What kind of ExecutionService to use
  executor = "thread-pool-executor"

  # Configuration for the fork join pool
  thread-pool-executor {
     fixed-pool-size = 16
  }

  # Throughput defines the maximum number of messages to be
  # processed per actor before the thread jumps to the next actor.
  # Set to 1 for as fair as possible.
  throughput = 100
}

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