Question: what is the difference between runtime and middleware?
Answer: Middleware is a very general concept but it simply refers to software placed between two systems as an abstraction layer. You could consider a language runtime as a form of middleware in some contexts.