DEV Community

freakomonk
freakomonk

Posted on

Microservices vs Batch programs

Microservice Batch program
Typically built to serve one usecase Supports multiple tasks called jobs
APIs are built into a microservice Batch should never contain APIs since the availability is not guaranteed
Hosted by a server framework eg., Netty, Django Not hosted but executed periodically by a scheduler eg., cronjob
Have very high availability requirements No requirement of availability. Executed when required
Interoperability with other microservices and batches might be desired Should be interoperable with other microservices and batches
High resource intensive tasks are usually not handled by microservices to enable high availability Designed for high resource intensive tasks

Top comments (0)