An Introduction to Serverless Compute
on the .NET Cloud
By me, Kyle Mitofsky, a developer
- Infastructure (VM)
- Platform (Container)
- Functions (micro-service)
Note: Abstraction + Provider
Con(cern + trol)
- Virtual Machines
- Web Apps + Web Jobs
- Logic Apps + Event Grids
- Functions
Azure is Pickle Jar
Note: if you have data, azure wants it. Also plays host to hundreds of Saas providers
Events + Code
- HTTP
- Timer
- Event Grid
- Blob Storage
- Table Storage
- Queue Storage
- + many many more
Input & Output
- Http
- Blob Storage
- Queue Storage
- Notification Hubs
- Twilio
- Send Grid
- + many many more
- Resources ✓
- Architecture ?
- 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>");
var data = new MyTableEntity() { Name = "Kyle" };
var operation = TableOperation.Insert(data);
var result = await myTable.ExecuteAsync(operation);
var operation = TableOperation.Retrieve<MyTableEntity>("key", id);
var result = await myTable.ExecuteAsync(operation);
var operation = TableOperation.Delete(myTableEntity);
var result = await myTable.ExecuteAsync(operation);