Azure FUN-ctions #
An Introduction to Serverless Compute
on the .NET Cloud
By me, Kyle Mitofsky, a developer
___aaS #
- Infrastructure (VM)
- Platform (Container)
- Functions (micro-service)
Note: Abstraction + Provider
Concern vs. Control #
Con(cern + trol)
Azure #
smaller, better, faster #
- Virtual Machines
- Web Apps + Web Jobs
- Logic Apps + Event Grids
- Functions
Ecosystem #
Azure is Pickle Jar
Note: if you have data, azure wants it. Also plays host to hundreds of SaaS providers
Functions #
Events + Code
Triggers #
- HTTP
- Timer
- Event Grid
- Blob Storage
- Table Storage
- Queue Storage
- + many many more
Bindings #
Syntactic Sugar #
Input & Output
Binding Types #
- Http
- Blob Storage
- Queue Storage
- Notification Hubs
- Twilio
- Send Grid
- + many many more
Scaling #
- Resources ✓
- Architecture ?
Pricing #
Tooling #
- Visual Studio Code
- Amazing Extension Market
- Postman
- Azure Table Storage Explorer
CloudTable
CRUD #
var credentials = new StorageCredentials("<name>", "<account-key>");
var storageAccount = new CloudStorageAccount(credentials, true);
var tableClient = storageAccount.CreateCloudTableClient();
var myTable = tableClient.GetTableReference("<table-name>");
Create #
var data = new MyTableEntity() { Name = "Kyle" };
var operation = TableOperation.Insert(data);
var result = await myTable.ExecuteAsync(operation);
Read #
var operation = TableOperation.Retrieve<MyTableEntity>("key", id);
var result = await myTable.ExecuteAsync(operation);
Delete #
var operation = TableOperation.Delete(myTableEntity);
var result = await myTable.ExecuteAsync(operation);