DEV Community

loading...

Microservices vs Batch programs

freakomonk profile image freakomonk ・1 min read
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

Discussion (0)

pic
Editor guide