Active Object

Design pattern to facilitate asynchronous programming

Aug 31, 2025

Active Object is a design pattern to facilitate asynchronous programming. With the Active Object pattern, we decouple method invocation from method execution with the help of a queue and scheduler.

Components

  • Interface - Provides the publicly accessible methods
  • Pending requests list - A list of pending requests from clients
  • Scheduler - Decides which request to execute next
  • Implementation - The implementation of the active object methods
  • Callback or variable - For the client to receive the result
TL9TZjmW37xd5Eu-jG-zGALKM_L7MgahjTiJKF0ag0HICD7CxGiE8SDqzYd6tm-VJHuZoK1fjk8DJJWZB5OQ9yIIkqQPHJg2Xy_MeAC7a14Kbpty8_ZpXT6bL3tuCs521l-MgWT_gGbriXYO4FTJJtgQ5vkJEP9alDkO6DQCtQIKrlwMwWypJebIG2660PwH9g_XoQrUiGKCWzZcWFSVjypm0LIMmypSj--4L6HMILX7saYP