Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

Dispatcher

Avatar

Level 5

what is dispatcher?

how does it help - security, load balancing, caching, performance?

set up/steps/configuration 1) author(in brief) 2)publish 3) one author n multiple publish?

how does caching work (flush agents, diff between content updation and invalidating cache)?

how does load balancing work ?

1 Accepted Solution

Avatar

Correct answer by
Level 10

dispatcher is a "reverse proxy" which is a type of proxy server that retrieves resources on behalf of a client from one or more servers. These resources are then returned to the client, appearing as if they originated from the proxy server itself

from security viewpoint, you can either whitelist or blacklist urls or regex patterns or extensions and thus restrict the traffic flow to allow only what should be allowed from specific users/servers  refer - The Dispatcher Security Checklist

for setup, refer - Configuring Dispatcher, Installing dispatcher on Apache in windows - YouTube 

By default, HTTP responses are cacheable unless specific headers are set to override the default behavior.- Refer - HTTP/1.1: Caching in HTTP,​  HTTP caching - HTTP | MDN , Cacheable - MDN Web Docs Glossary: Definitions of Web-related terms | MDN 

flush agent(s) trigger requests to "touch" (modify the timestamp) the .stat file in apache's docroot where the cached content is stored.

load balancing (software load balancing) works through '/statistics' section of dispatcher.any. You may configure that "*.pdf" or "*.jpg" should be fetched from one server while "*.html" should be fetched from other server otherwise you can say all files of projectA from first publish server and projectB from second publish server etc.

# The statistics sections dictates how the load should be balanced among the renders according to the media-type.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

dispatcher is a "reverse proxy" which is a type of proxy server that retrieves resources on behalf of a client from one or more servers. These resources are then returned to the client, appearing as if they originated from the proxy server itself

from security viewpoint, you can either whitelist or blacklist urls or regex patterns or extensions and thus restrict the traffic flow to allow only what should be allowed from specific users/servers  refer - The Dispatcher Security Checklist

for setup, refer - Configuring Dispatcher, Installing dispatcher on Apache in windows - YouTube 

By default, HTTP responses are cacheable unless specific headers are set to override the default behavior.- Refer - HTTP/1.1: Caching in HTTP,​  HTTP caching - HTTP | MDN , Cacheable - MDN Web Docs Glossary: Definitions of Web-related terms | MDN 

flush agent(s) trigger requests to "touch" (modify the timestamp) the .stat file in apache's docroot where the cached content is stored.

load balancing (software load balancing) works through '/statistics' section of dispatcher.any. You may configure that "*.pdf" or "*.jpg" should be fetched from one server while "*.html" should be fetched from other server otherwise you can say all files of projectA from first publish server and projectB from second publish server etc.

# The statistics sections dictates how the load should be balanced among the renders according to the media-type.