Local Dispatcher Setup AEM as a Cloud Service




Adobe Experience Manager (AEM)'s Dispatcher is a Apache HTTP Web server module that provides a security and performance layer between the CDN and AEM Publish tier. Dispatcher is an integral part of the overall Experience Manager architecture and should be part of local development set up.

Prerequisites to set up local dispatcher for AEM as cloud (on Windows):

  • Install Experience Manager Publish Quickstart Jar on the local develop machine.
  • Install and start the latest version of Docker (Docker Desktop 2.2.0.5+ / Docker Engine v19.03.9+) on the local development machine.
Steps to Install Docker and start :
  • Download docker for windows from this link.
  • Run the .exe file downloaded.
  • After that docker desktop app will be installed in your system. Start your docker.
  • If you get below error, then open settings and uncheck Use the WSL 2 based engine and restart docker. You will see your Docker has started now.



  • If still the docker is not up then go through this link's step 4 and Step 5 -- WSL LINK
Steps to install and run Dispatcher:
  • Login to experience.adobe.com/#/downloads with your Adobe ID. Your Adobe Organization must be provisioned for AEM as a Cloud Service to download the AEM as a Cloud Service SDK
  • Click on the latest AEM SDK result row to download. Ensure AEM SDK’s Dispatcher Tools v2.0.29+ is noted in the download description
  • Unzip the downloaded aem-sdk-xxx.zip file.
  • Unpack the Dispatcher Tools into ~/aem-sdk/dispatcher (Unzip aem-sdk-dispatcher-tools-x.x.x-windows.zip into C:\Users\<My User>\aem-sdk\dispatcher ,creating missing folders as needed).
  • Now run cmd as administrator in dispatcher folder where above folders are present and run these below commands:
Commands:
  • bin\validator full -d out src . This will create out folder.
  • bin\docker_run out host.docker.internal:4503 8080 , This will run your dispatcher at 8080 port and  AEM as a Cloud Service SDK's Publish Service, running locally on port 4503 will be available through Dispatcher at http://localhost:8080.

Hope this helps!!

Happy Coding 🙏


If you like my post and find it helpful, you can buy me a coffee.

Comments

Post a Comment