Skip to content

Server Threads

By default Pode deals with incoming requests synchronously in a single thread (or runspace). You can increase the number of threads/runspaces that Pode uses to handle requests by using the -Threads parameter on Start-PodeServer:

Start-PodeServer -Threads 2 {
    # logic
}

The number of threads supplied only applies to Web, SMTP, and TCP servers. If -Threads is not supplied, or is <=0 then the number of threads is forced to the default of 1.