Skip to content

Commit f7d6822

Browse files
authored
added factory docs
1 parent 9e68873 commit f7d6822

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,13 @@ This enables component developpers to quickly add exposed functionality without
165165
## Topic system
166166
DigitalPy also supports a Pub-Sub protocol.
167167

168+
## Factory Container
169+
In DigitalPy, Factory Containers serve as centralized, singleton structures that facilitate communication and synchronization among the architecture's independent components. These containers are primarily responsible for maintaining configurations, such as routing and serializing information, ensuring that all parts of the system operate cohesively.
170+
171+
Operating within a multi-threaded and multi-processor environment, DigitalPy employs thread locks within these factory containers to maintain data consistency and prevent race conditions. To disseminate updates efficiently, the framework utilizes a ZeroMQ publish-subscribe (pub/sub) mechanism. In this setup, the factory owner (e.g., Configuration Management) publishes updates, and all relevant components and services, subscribed to the factory, receive these updates in real-time, ensuring system-wide alignment.
172+
173+
This design promotes a modular and scalable architecture, allowing for seamless integration and coordination across various components of a DigitalPy application.
174+
168175
# DigitalPy components
169176

170177
![image](https://github.com/FreeTAKTeam/DigitalPy/assets/60719165/fc7a6ca4-9b87-42bb-8608-f76e646715ce)

0 commit comments

Comments
 (0)