1Z0-1084-20 · Question #46
What is one of the differences between a microservice and a serverless function?
The correct answer is A. Microservices are used for long running operations and serverless functions for short running. microservice is larger and can do more than a function. A function is a relatively small bit of code that performs only one action in response to an event. In many cases, microservices can be decomposed into a number of smaller stateless functions. The difference between…
Question
What is one of the differences between a microservice and a serverless function?
Options
- AMicroservices are used for long running operations and serverless functions for short running
- BMicroservices always use a data store and serverless functions never use a data store.
- CMicroservices are stateless and serverless functions are stateful.
- DMicroservices are triggered by events and serverless functions are not.
How the community answered
(34 responses)- A82% (28)
- B3% (1)
- C9% (3)
- D6% (2)
Explanation
microservice is larger and can do more than a function. A function is a relatively small bit of code that performs only one action in response to an event. In many cases, microservices can be decomposed into a number of smaller stateless functions. The difference between microservices and functions is not simply the size. Functions are stateless, and they require no knowledge about or configuration of the underlying server--hence, the term serverless. https://developer.oracle.com/java/fn-project-introduction.html
Topics
Community Discussion
No community discussion yet for this question.