Serverless on Azure

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or

Already have an account? Sign In »

Time
3 hours 51 minutes
Difficulty
Beginner
CEU/CPE
4
Video Transcription
00:00
Now
00:01
let's talk about server lists.
00:03
First of all, the term server list is a bit confusing
00:07
when you hear that you're probably thinking that there are no servers.
00:10
This is not the case.
00:13
Your code is still executed on a server somewhere in the cloud.
00:17
There's a pool of servers that the cloud vendor maintains, and those are used to run your code.
00:21
However, the server that executes your code is determined by the cloud platform.
00:27
Also, there's no guarantee that the next time your code executes it will be on the same server as before
00:35
your code executes as a result of a trigger. This can be a scheduled trigger http trigger or an event trigger.
00:42
This gives you the flexibility to implement different solutions. Using server list computing,
00:47
for example, you can use the http triggers to implement restful API s that are accessed from mobile devices. Or use the scheduled trigger to run background jobs every hour or the event trigger to raise alerts when a sensor detects higher temperature.
01:03
Now because the cloud vendor manages the infrastructure and you have no control over it, there are certain things you need to consider while implementing your functionality.
01:12
Normally, serverless applications are considered stateless.
01:17
Although each one of the servers that executes your code has a local store attached, you should not use the storage
01:23
you want to preserve between executions. For that,
01:27
you may write and read data from the local storage while your code is executing. But once the execution is complete, your code will not have any more access to that data.
01:38
Also, keep in mind that the execution environment is shared, and storing sensitive data locally
01:44
may not be a good idea.
01:46
If you need to pass data between executions,
01:49
you should use state fel, serve Earless service or use a cloud storage service to store data from your stateless apps.
01:57
Another thing that you may need to consider is that the execution time for your code is limited.
02:02
For example,
02:04
as your functions have execution time limits of five minutes by default,
02:08
you can increase it to 10 minutes. But this is still not enough for long running processes.
02:14
If you need to have a job that runs longer, you should consider using any other of the computer technologies as your offers.
02:23
Azure has two services that implement server list computing
02:28
the first one is azure functions
02:30
as your functions uses a code first approach or imperative deployment approach.
02:36
This means that you write custom code that gets executed in the cloud.
02:39
You can write your functions in C sharp F sharp
02:44
JavaScript, Java power shell, python or typescript,
02:49
as your functions can be stateless and state fel
02:52
state fel azure functions are also called durable functions, and they pass context between the executions, allowing you to track prior activity.
03:01
There are about a dozen built in bindings and triggers for azure functions. For example, scheduled in http triggers or event triggers based on storage blob creations event great events or storage two messages.
03:16
You can also develop custom bindings.
03:19
Azure functions can be developed locally using the azure functions, core tools and extensions For visual studio in V S code,
03:27
you can manage azure functions from the portal visual studio V S code or using Power Shell or the azure cli.
03:36
The other server list implementation in azure is the logic apps.
03:40
Logic apps use a designer first or decorative approach.
03:45
You build flows using pre built connectors and processing blocks.
03:49
There are more than 200 connectors and processing blocks including enterprise and social services like office 3 65 Dynamics 3 65 Salesforce s, A P, G era, Zendesk, Twitter, Facebook and more.
04:04
You can implement custom connectors to
04:06
you implement the workflows in azure portal or in visual studio, and can persist those in adjacent format with predefined schema.
04:15
This allows you to automate the deployment of workflows.
04:19
The deployment itself and management can be done in the portal visual studio Power shell or azure CLI.
04:27
The last thing you need to remember about logic apps is that they are state fel and can persist information between executions.
04:35
Now you know how you can use server lists in azure.
Up Next