A Microservice-based Middleware for the Digital Factory