Azure Functions Vs. Logic Apps


Answer :

Azure Functions is code being triggered by an event.

Logic Apps is a workflow triggered by an event.

That means that they are also, in fact, complementary. You can, as of sometime yesterday, add a Function as part of a workflow inside a Logic App via the Logic Apps UX.

TL;DR - It's Logic Apps + Functions, not Logic Apps OR Functions.


"Here are few use cases where you can decide to choose between Azure Functions and Azure Logic Apps.

Azure Functions:

  1. Azure Function is code being triggered by an event
  2. Azure Functions can be developed and debugged on local workstation, which is a big plus to increase developer productivity
  3. When dealing with synchronous request/response calls, that execute more complex logic, Azure function is preferred option

Logic Apps:

  1. Logic Apps is a work flow triggered by an event

  2. Logic Apps run only in the cloud, as it has a dependency on Microsoft-managed connectors. It cannot be debug, test or run Logic Apps locally

  3. Logic Apps is better suited for asynchronous integration and fire-and-forget messaging that requires reliable processing.

Azure Functions has sufficient logging and troubleshooting capabilities and you can even build your custom monitoring tools. Functions does not depend on cloud, it can run locally too."


Logic Apps are used for automating your business process. They make integration with cloud and on premise systems easy with several out of the box connectors. Azure functions on the other hand do something in response to an event, for instance when a message is added to a queue, or a blob is added, process these etc. I guess you can even expose Azure functions as an HTTP API endpoint and integrate into your business process using Logic Apps.

The other obvious difference in my mind is the pricing, Azure functions are charged based on the compute used for the function to execute and the associated memory with the function (https://azure.microsoft.com/en-us/pricing/details/functions/).


Comments

Popular posts from this blog

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Can Feynman Diagrams Be Used To Represent Any Perturbation Theory?