8. Взаимодействие с Blob
хранилищем
var azure = require('azure');
var blobClient = azure.createBlobService();
// Создание
var text = 'Содержание';
blobClient.createBlockBlobFromText(container, blob, text, function (error, blockBlob, response) {
// создан
});
// Выборка
blobClient.getBlobToText(container, blob, function (error, text, blockBlob, response) {
// получен
});
// Удаление
blobClient.deleteBlob(container, blob, function (error, isSuccessful, response) {
// удалён
});
9. Взаимодействие с таблицами
var azure = require('azure');
var tableClient = azure.createTableService();
// Вставка
var item = new SomeEntity();
item.PartitionKey = ‘Item 1';
item.RowKey = uuid();
tableClient.insertEntity('table', item, function (error, entity, response) {
});
// Выборка
tableClient.queryEntity('table', item.PartitionKey, item.PartitionKey, function (error, successful, response) {
});
10. Взаимодействие с очередями
var azure = require('azure');
var queueClient = azure.createQueueService();
// Записать в очередь
queueClient.createMessage('queue', ‘Сообщение',
function (error, queueMessageResult, response) {
});
// Выбрать сообщения
queueClient.getMessages('queue',
function (error, queueMessageResults, response) {
});
11. Windows Azure Mobile Services
• Данные
• Нативные SDK
• Пуш уведомления
• Авторизация
• Масштабирование