3 ms·
Microservices are useful when there's inherent isolation between the data used by each service. If they talk to totally different databases, and you don't have
by Animats 10y ago
Microservices are useful when there's inherent isolation between the data used by each service. If they talk to totally different databases, and you don't have to do atomic updates across service boundaries, why not?
Our DARPA Grand Challenge vehicle in 2005 was all microservices. There were tasks for each sensor, a location task which integrated AHRS, GPS, and map data into "where are we now", a steering task, and a planning task which took in the sensor data, built a local point cloud map, and issued steering commands. There was also an emergency stop task monitoring the radar and able to stop the vehicle if it detected an incipient collision, independent of the mapping systems. The non-hardware tasks could be run separately, or in a simulator, and we could tap in at a boundary and log.
This was all QNX, hard real time. This part of the system worked quite well.
Synchronization was unusual, in that the sensor data all came in at different times depending on the sensor. So we timestamped everything at the millisecond level, and interpolated between sensor frames to get values for all sensors at the same instant. The overall update rate for planning was 100ms, rather slow by modern standards.