Describe how you would handle asynchronous task processing and message queuing in a distributed system.