Patrones Cloud: Caché

Si recordáis mi último post (en CantabriaTIC), planteamos un problema: teníamos un servicio en una máquina que tardaba mucho, entre otras cosas por el acceso a la BBDD. Hoy veremos como solucionar eso usando una caché.

Aunque no sepáis nada de la Nube™ esta palabra os sonará, y es que la Nube™ no ha traído nada nuevo (ni siquiera ella misma, pero eso es otra discusión que tendrá que ser mantenida en otro momento). Las cachés se usan continuamente en informática para resolver problemas de acceso a datos como al que nos enfrentamos. El aparato que estés usando para leer esto tendrá una caché física, el sistema operativo que lo corra tendrá una caché virtual y el navegador con el que estés accediendo tendrá una caché de aplicación.

Cache Diagram

Seguir leyendo en CantabriaTIC.

Patrones Cloud: Intro

Aprovechando esa arrancada que ha tenido Cecilio sobre patrones, voy a aportar mi granito de arena ya que leer, escribir, hablar sobre patrones siempre es algo divertido e interesante.

Cecilio no llega a dar una definición, y aunque debería de estar claro con la catalogación y los ejemplos que él ha puesto, pongámosle nombre a las cosas para los que no lo tengáis claro aun: «patrones» es como se llama a las formas de resolver problemas que se repiten. Por ejemplo para un ingeniero de obras públicas que está construyendo una carretera habrá un patrón «puente» que puede usar cuando se encuentra cosas como ríos, vías de tren y otras carreteras, y habrá otro patrón túnel que se emplea casi siempre cuando se encuentra montañas, pero que también se puede usar en otros casos.

Patrones: túnel
Oresund Line, es un puente/túnel entre Dinamarca y Suecia

Seguir leyendo en CantabriaTIC.

Habilitar Autenticación Servidor a Servidor en aplicaciones de AAD

A veces, cuando estamos creando una aplicación, es sólo para que se use desde uno o unos pocos puntos, generalmente servidores que usan nuestro servicio para complementar el suyo. En esos casos es interesante dotar a ambos puntos de un certificado de seguridad que haga que quien recibe la llamada sólo la acepte si (entre otras cosas) se le pasa el certificado correcto.

Seguir leyendo en CantabriaTIC.

Summary of the main stage #dotNetSpain2016

Yesterday was the .Net Conference at Kinepolis Madrid. The schedule was really huge but, lucky me, I could not assist so I did not have to choose and only could see the streaming of the main stage.

The starting keynote was carried out by Jose Bonin. Jose was talking about the future, about the great things that technology will give us. He talked about different things like just-in-time translation with skype or homomorphic encryption to operate with encrypted data. He shared the stage with Alberto Diaz, he showed a factory robot and talked about interfaces, IA and stuff like that.

After that, Chema Alonso talked about security with examples specially focused on Microsoft technologies. He did a Pen test to Microsoft.com site. Chema is always amazing and funny.

The most expected talk by social networks was the the keynote of Satya Nadella (CEO@Microsoft).


He talked about the great moment to be a .Net developer, and says that they are giving us a single development model to create programms for all their technologies. You can use .Net to implement Machine Learning algorithms and an interface for Hololens.

The first in the afternoon was Hugo Biarge (the last at the morning for Spanish people as he said). He talked about Authentication and Authorization with the new version of ASP .Net. The new model (Imperative Authorization) is based on policies and claims, no more user and roles (roles stay but they are not recommended). Active Directory and Identity Server are the main characters to do this.

After lunch break, Luis Ruiz Pavón talked about the new .Net framework (and ASP .Net). It was crazy because Microsoft changed all things. I wrote a post two weeks ago about what is coming, this post was published yesterday and it has a lot of mistakes because they changed all: environment, commands, even the names!

Eduard Tomas presented all the news of MVC6, a lot of changes. It will be like learn a new framework (I tested it and I cannot recommend it for production projects at this moment). Nowadays it is hard to be up to day but necessary to do our job, isn’t it?

Last ones over the stage were Francesc Jaumot and Jose Cousiño. They did a demo with a lot of code, teaching how to use Visual Studio Code to develop a single page application using Angular 2 (the TypeScript flavor) in the frontend and ASP .Net Core 1 in the backend. It was a talk with a lot of problems but they were ready to jump obstacles and in the end all worked.

All of them were really interesting, and I suggest you see the linked videos.

At the end of the day everybody was surprised with the information of Microsoft acquiring Xamarin. Me too, but it has perfect sense attending changes coming that we saw during the #dotNerSpain2016.

ASP .Net 5 – MVC 6

Estas siglas ya os sonarán a todos, pero puede que los números que las acompañan no. Ahora en febrero, si todo está en su sitio, saldrá (o habrá salido para el día que esto se publique) la Release Candidate 2 de ASP .Net 5 y de MVC 6. Creo que hacen un nuevo planteamiento muy interesante. Reducen cargas, introducen patrones, se abren más aun al mundo open source y predisponen a hacer las cosas bien. Además muchas de estas cosas no son sólo para web y se pueden extrapolar a aplicaciones de otro tipo.

Seguir leyendo en CantabriaTIC.

Convertir un certificado *.pfx a Base64

Hace poco hablamos de como crear un certificado, pero a veces en lugar de como archivo lo necesitamos como una cadena de texto, que generalmente tiene que estar codificada como Base64. Vamos a ver como pasar un certificado *.pfx a Base64 y para ello vamos a usar la consola de Powershell -sí, esa ventana de comandos azul que tienes en tu Windows-.

Seguir leyendo en CantabriaTIC.

Webjobs SDK

Los Webjobs de Azure, si recordáis lo que ya comentamos, son procesos de background y aunque hablamos que valía cualquier tipo de “cosa” ejecutable, también os paunté hacia el SDK y quedamos en que ya veríamos los Bindings que nos proporciona el JobHost.

Seguir leyendo en CantabriaTIC.