CSLA with Serverless / AWS Lambda #3723
-
Does anyone have any examples or real world experience of using CSLA with serverless technologies, most notably AWS Lambda? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I don't know about Lambda, but I have had a couple people talk about using CSLA within Azure Functions over the years. It used to be a bit tricky with the very first implementation of Functions due to the way Microsoft hosted the code, but Functions work differently now and afaik there's no problem. |
Beta Was this translation helpful? Give feedback.
-
I've been messing with Azure Functions for a few weeks. It builds and compiles like any other c# project. This technology feels like a stripped down one-way console app (meaning no ui input). I am able to configure and initialize DI services in Program.cs and to inject those services into my Function class just like any other c# class. So there is nothing about serverless that would cause trouble with CSLA. But obviously you'd be using a pretty small subset of what CSLA can offer. Throw out the DataPortal. Throw out UI databinding. Probably the only real feature left of value would be business rules? I'm not sure of the value proposition there. P.S. The inputs/bindings are finicky for functions. The documentation lagging and inconsistent on Azure Functions v2x and 4x (probably because things are changing so rapidly as they iterate). The examples are often mixed between the older versions and the newer ones or incomplete not showing what is in the appsettings file. So you are left to "plug and play-with-it" experience. I'm sure it will catch up eventually. |
Beta Was this translation helpful? Give feedback.
I've been messing with Azure Functions for a few weeks. It builds and compiles like any other c# project. This technology feels like a stripped down one-way console app (meaning no ui input). I am able to configure and initialize DI services in Program.cs and to inject those services into my Function class just like any other c# class.
So there is nothing about serverless that would cause trouble with CSLA. But obviously you'd be using a pretty small subset of what CSLA can offer. Throw out the DataPortal. Throw out UI databinding. Probably the only real feature left of value would be business rules? I'm not sure of the value proposition there.
P.S. The inputs/bindings are finicky for fun…