ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 48 - AD0-E722 discussion

Report
Export

An Adobe Commerce Architect notices that queue consumers close TCP connections too often on Adobe Commerce Cloud server leading to delays in processing messages.

The Architect needs to make sure that consumers do not terminate after processing available messages in the queue when CRON job is running these consumers.

How should the Architect meet this requirement?

A.
Set cohsumers_wait_for_max_MESSAGES variable true in deployment stage.
Answers
A.
Set cohsumers_wait_for_max_MESSAGES variable true in deployment stage.
B.
Increase multiple_process limit to spawn more processes for each consumer
Answers
B.
Increase multiple_process limit to spawn more processes for each consumer
C.
Change max_messages from 10,000 to 1,000 for CRON_CONSUMERS_RUNNER variable.
Answers
C.
Change max_messages from 10,000 to 1,000 for CRON_CONSUMERS_RUNNER variable.
Suggested answer: A

Explanation:

Option A is correct because setting the consumers_wait_for_max_messages variable true in the deployment stage is the best way to meet the requirement. This variable controls whether the queue consumers should wait for a maximum number of messages to process before terminating. If this variable is set to true, the consumers will not terminate after processing the available messages in the queue, but will wait until they reach the max_messages limit or the cron job timeout.This way, the consumers can keep the TCP connections open and avoid delays in processing messages1.

Option B is incorrect because increasing the multiple_process limit to spawn more processes for each consumer will not solve the issue of queue consumers closing TCP connections too often. The multiple_process limit determines how many parallel processes can be run for each consumer. Increasing this limit may improve the throughput of message processing, but it will also consume more server resources and may cause conflicts or errors.Moreover, it will not prevent the consumers from terminating after processing the available messages in the queue2.

Option C is incorrect because changing the max_messages from 10,000 to 1,000 for CRON_CONSUMERS_RUNNER variable will worsen the issue of queue consumers closing TCP connections too often. The max_messages variable defines how many messages each consumer should process before terminating. Decreasing this variable will make the consumers terminate more frequently, which will result in more TCP connections being closed and reopened.This will increase the delays in processing messages3.

1: Configure message queues | Adobe Commerce Developer Guide

2: Configure message queues | Adobe Commerce Developer Guide

3: Configure message queues | Adobe Commerce Developer Guide

Developer mode is the best option for setting up a development environment for testing functionality, not performance, before being passed to the testing team. In developer mode:

Errors are logged and hidden from the user. This ensures that the user does not see any uncaught exceptions or debugging information, but the developers can still access them from the log files.

Cache mode can only be changed from command line. This prevents any accidental or unauthorized changes to the cache settings from the admin panel or other sources.

Static files are created dynamically and then cached. This allows the developers to see the latest changes to the static files without having to run the static content deployment command every time. The static files are also cached for faster loading.

asked 02/10/2024
Lascelles Johnson
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first