Posts

Showing posts with the label tutorial

.NET Web API output cache con Azure Redis Cache

Image
En esta publicación veremos como conectar una Web API de .NET a Azure Redis Cache. El objetivo es decorar nuestros métodos web para que las respuestas que son concurrentes se obtengan del servicio de cache de Azure Redis Cache y no tener que ir siempre a una base de datos. La manera en la que vamos a implementar esta solución es codificando un "middleware" en nuestra Web API, interceptando únicamente los "request" de los métodos que nosotros deseamos implementar cache. Una vez que interceptamos los request, verificamos en Redis mediante un Key, si no existe registro, dejamos que nuestro método haga su operación normal, despues, al final del proceso, obtenemos el "response" y lo guardamos en Redis con alguna Key que identifique el registro para luego obtenerlo de cache cuando se requiera. Pre-requisitos Visual Studio , obtenerlo aquí . Tener una suscripción de Azure si no tienes una, puedes obtener un free trial Descargar código aquí:...

How to implement OAuth 2.0 server with Redis

Image
Index: Step 1: Install XAMPP Step 2: Get OAuth 2.0 server Step 3: Setup OAuth 2.0 server in XAMPP Step 4: Install Redis Step 5: Create and feed token and users structures in Redis Step 6: Test OAuth 2.0 First of all Before you start with the implementation, take a look to this video tutorial. Understanding OAuth Community site :  http://oauth.net/ Additional to the videos above, I'll share you the OAuth 2.0 authorization flow to have a better idea how this thing works. Step 1: Install XAMPP To test your OAuth 2.0 server you can install XAMPP from here (skip this step if you have another application server that supports PHP 5.3.9+) Step 2: Get OAuth 2.0 server Get a functional OAuth 2.0 server from  here      Or clone it :) git clone https://github.com/Kodran/OAuth-2.0-server-with-redis.git Step 3: Setup OAuth 2.0 server in the web application root folder If you are working with XAMPP, go...

Deploying a Node.js app in Microsoft Azure using Git

Image
Index: Step 1: Analyze your app Step 2: Choose a Microsoft Azure environment Step 3: Initialize git repository Step 4: Push the app to the cloud Step 1: Analyze your app Hi :) First of all, you need to analyze your Node.js application goals in order to decide, what kind of solution you are going to choose in Microsoft Azure.  Microsoft Azure offers several ways to host web sites:  Azure Websites ,  Cloud Services , and  Virtual Machines . Let's make easy to know how to do this. Source: http://azure.microsoft.com/enus/documentation/articles/choose-web-site-cloud-service-vm/ Step 2:  Choose a Microsoft Azure environment So, basically Microsoft  Azure offers three cloud deployment models for applications to be deployed in any of the eight Microsoft global datacenters: Virtual Machines (VMs), Cloud Services and Web Sites. The most appropriate deployment model depends on the level ...