<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Luis Carbajal</title>
    <description>The latest articles on DEV Community by Luis Carbajal (@luisc009).</description>
    <link>https://dev.to/luisc009</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F240967%2F2bf37f0a-a35e-4f8e-8d8c-271625efaede.jpeg</url>
      <title>DEV Community: Luis Carbajal</title>
      <link>https://dev.to/luisc009</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/luisc009"/>
    <language>en</language>
    <item>
      <title>Cloud Providers</title>
      <dc:creator>Luis Carbajal</dc:creator>
      <pubDate>Thu, 29 Oct 2020 20:55:45 +0000</pubDate>
      <link>https://dev.to/luisc009/cloud-providers-oj</link>
      <guid>https://dev.to/luisc009/cloud-providers-oj</guid>
      <description>&lt;p&gt;If you work in the IT industry, you probably have heard one of the following statements: &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I store my files in the Cloud. &lt;br&gt;
The application runs on the Cloud. &lt;br&gt;
All of my servers are in the Cloud. &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;But what is the Cloud?&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;The Cloud is an IT paradigm that allows on-demand availability of computational resources and data stores without the user's direct active management.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;That's it, thank you for reading!&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;No, no, just kidding. Let's go beyond that definition. Let's imagine that, just as you or me, the application needs a place to live. There are a lot of solutions for housing problems, but we are going to focus on two: &lt;/p&gt;

&lt;p&gt;You can build a house. For that, you will need: a land, do the blueprints for the home, hire a bunch of people to work on the construction, wire it up, pipe it up, paint it, work on the finished, and a whole load of other things. Ah, I almost forget, you need to maintain it as well!&lt;/p&gt;

&lt;p&gt;The other option is to rent a place. A monthly payment will give you access to an apartment that adjusts to the needs of your application. One of the coolest things is that the apartment has an elastic structure that allows it to expand or shrink its size!&lt;/p&gt;

&lt;p&gt;And we are just starting! The applicatentants need to do many chores, for example, washing their clothes, for which some applicatentants take their clothes to an outside laundry, others have their washing center inside their apartments, and some others do not wash their clothes. The landlord started to offer a new service for all of its applicatentants: Washing machine rental! Now the applicatentants can use a washing machine or a dryer machine without leaving the apartment complex or bother about its maintenance. The only thing they should worry about is not to mix white clothes with colored clothes. &lt;/p&gt;

&lt;p&gt;But there is more. The apartment complex has controlled access, 24/7 surveillance, and enormous warehouses so applicatentants can store anything they want. The apartment complex also provides a financial advisor, an alert system that applicatentants can configure however they want. There are more apartment complexes worldwide so that the applicatentants can move between them without any significant difficulty! And the landlord adds new services to improve the satisfaction of the applicatentants month by month. &lt;/p&gt;

&lt;p&gt;Renting an apartment on the Cloud has more advantages than building your place from the ground. &lt;/p&gt;

&lt;p&gt;In conclusion, having your own data center is often complicated. You must keep in mind the place, the servers, the network, the wires, controlled accesses, administration and maintenance, and more tasks that I am not listing here. &lt;/p&gt;

&lt;p&gt;Meanwhile, renting a space at someone else's data center tends to be cheaper, scalable, easy to administrate, and integrated with other services offered by the provider. &lt;/p&gt;

&lt;p&gt;The most popular cloud providers are: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AWS&lt;/li&gt;
&lt;li&gt;Azure&lt;/li&gt;
&lt;li&gt;GCP&lt;/li&gt;
&lt;li&gt;DigitalOcean&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;TL;DR, Cloud Computing is to have virtual servers that you run on-demand on the provider's physical servers; they charge you for the time servers run.&lt;/p&gt;

&lt;p&gt;Header image - &lt;a href="https://www.flickr.com/photos/123598607@N02/13996792409"&gt;"Clouds"&lt;/a&gt; by &lt;a href="https://www.flickr.com/photos/123598607@N02"&gt;CSLmedia Productions&lt;/a&gt; is licensed under &lt;a href="https://creativecommons.org/licenses/by-nc-sa/2.0/?ref=ccsearch&amp;amp;atype=rich"&gt;CC BY-NC-SA 2.0&lt;/a&gt;&lt;/p&gt;

</description>
      <category>cloud</category>
      <category>providers</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Nubes de Internet</title>
      <dc:creator>Luis Carbajal</dc:creator>
      <pubDate>Tue, 27 Oct 2020 16:56:10 +0000</pubDate>
      <link>https://dev.to/luisc009/nubes-de-internet-1g9c</link>
      <guid>https://dev.to/luisc009/nubes-de-internet-1g9c</guid>
      <description>&lt;p&gt;Si trabajas en la industria de IT, habrás escuchado en más de una ocasión alguna frase de las siguientes:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Los archivos están almacenados en la nube.&lt;/em&gt;&lt;br&gt;
&lt;em&gt;La aplicación corre en la nube.&lt;/em&gt;&lt;br&gt;
&lt;em&gt;Mis servidores están en la nube.&lt;/em&gt; &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Pero...  ¿Qué es la nube?&lt;/p&gt;

&lt;p&gt;La nube es un paradigma informático que permite la disponibilidad en demanda de recursos computacionales y de almacenamiento de datos sin ser manejados activamente por el usuario. &lt;/p&gt;

&lt;p&gt;¡Gracias por leer!&lt;/p&gt;

&lt;p&gt;No se crean, vamos a ir un poco más allá de esa definición. Digamos que las aplicaciones viven en casas, así como nosotros, y tú le estás buscando un lugar donde vivir a la tuya; hay por supuesto muchas soluciones al problema de vivienda, pero nos enfocaremos en dos:&lt;/p&gt;

&lt;p&gt;Puedes construir un lugar para vivir. Necesitarás un terreno, diseñar el plano de la casa, contratar a una montón de personas para trabajar en la construcción, la electricidad, la plomería, la pintura, los acabados, y otro puño de tareas, ¡ah sí! ¡También debes de hacer cargo de darle mantenimiento periódicamente! &lt;/p&gt;

&lt;p&gt;O puedes rentar un lugar para vivir. Por una cantidad de dinero mensual, tienes acceso a un departamento que se adecua a las necesidades de tu aplicación. Y lo más genial es que el departamento cuenta con una estructura elástica de última generación que le permite aumentar o disminuir su tamaño. &lt;/p&gt;

&lt;p&gt;Pero eso no es todo, las &lt;em&gt;app-inquilnas&lt;/em&gt; necesitan hacer muchas tareas, por ejemplo, lavar sus ropas, algunas llevan su ropa a lavar fuera, otras tienen sus propias lavadoras dentro de su departamento, y algunas ni siquiera lavan ropa. Dentro del edificio se empezó a ofrecer un nuevo servicio: ¡Renta de lavadoras y secadoras! Ahora las &lt;em&gt;app-inquilnas&lt;/em&gt; pueden hacer uso de una lavadora o una secadora sin necesidad de salir del edificio, o de preocuparse por el mantenimiento. Lo único que deben tener en cuenta es en no mezclar ropa blanca y de color, o de echar cloro a la ropa de color. &lt;/p&gt;

&lt;p&gt;Pero aún hay más, el edificio cuenta con acceso controlado, vigilancia 24/7, tienen almacenes gigantescos para que las &lt;em&gt;app-inquilnas&lt;/em&gt; guarden sus pertenencias. El edificio también les proporciona un asesor financiero, un sistema de alertas que pueden configurar como les venga en gana, y el propio edificio tiene más edificios a lo largo del mundo al los que te puedes migrar con facilidad. ¡Mes con mes se agregan nuevos servicios para mejorar la comodidad de las &lt;em&gt;app-inquilnas&lt;/em&gt;!&lt;/p&gt;

&lt;p&gt;Existen muchas más ventajas de rentar un departamento en la nube a nosotros construir un lugar desde cero. &lt;/p&gt;

&lt;p&gt;La conclusión es que tener tu propio centro de cómputo suele ser una tarea complicada y que involucra a muchas personas de alto expertise, ya que debemos tener en cuenta: el lugar, los servidores, el cableado de red, la red eléctrica, el acceso controlado, su administración, el mantenimiento, un plan de recuperación en caso de desastres, etc, etc. &lt;/p&gt;

&lt;p&gt;Mientras que rentar un espacio dentro del centro de cómputo de alguien más suele ser más barato, escalable, fácil de administrar, y sencillo de integrar con otros servicios ofrecidos el proveedor ofrece.&lt;/p&gt;

&lt;p&gt;Eso es la nube. Utilizar un espacio de cómputo que alguien más mantiene para tu propio beneficio. &lt;/p&gt;

&lt;p&gt;Los proveedores más conocidos de la nube son: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AWS&lt;/li&gt;
&lt;li&gt;Azure&lt;/li&gt;
&lt;li&gt;GCP&lt;/li&gt;
&lt;li&gt;DigitalOcean&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>cloud</category>
    </item>
    <item>
      <title>Effective Logging</title>
      <dc:creator>Luis Carbajal</dc:creator>
      <pubDate>Mon, 26 Oct 2020 04:50:12 +0000</pubDate>
      <link>https://dev.to/luisc009/effective-logging-5cik</link>
      <guid>https://dev.to/luisc009/effective-logging-5cik</guid>
      <description>&lt;p&gt;In computing, a log is an activity record generated by a system event. Logs are highly useful for monitoring, traceability, analyzing, verification, and to measure all activities related to the system.&lt;/p&gt;

&lt;p&gt;There is a misconception that debugging is the same as logging. It is not. Debug messages are usually cryptical and only make sense for those who wrote them. Logs are not just for developers but for support teams, auditors, system administrators, basically for everyone that interacts with the system.&lt;/p&gt;

&lt;p&gt;What to log depends on the system’s type and the type of events that wants to be analyzed. The most common activities are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Authentications, authorizations, and accesses.&lt;/li&gt;
&lt;li&gt;Application’s changes or information changes.&lt;/li&gt;
&lt;li&gt;Invalid inputs.&lt;/li&gt;
&lt;li&gt;Resources issues.&lt;/li&gt;
&lt;li&gt;Availability issues.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A log record should always answer the 5W’s, which are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;When the event happened (Timestamp).&lt;/li&gt;
&lt;li&gt;Where it happened (Class, component, application).&lt;/li&gt;
&lt;li&gt;Who triggered the event (User or service).&lt;/li&gt;
&lt;li&gt;What action the event performed (Action).&lt;/li&gt;
&lt;li&gt;Why the event was triggered (Reason).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Optional information can be added to the log record, such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Operation result (Was a success, or a failure)&lt;/li&gt;
&lt;li&gt;Priority (Severity, rank, level).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here is a list of recommendations to follow when you are planning the log:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Use a standard format for the system’s log (And if possible, spread the same log format across the company).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use the same wording for the same context. It is easy to read and analyze logs when they use the same words to express meaning.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Do not (I repeat, do not) include any confidential information in your log, passwords, tokens, or secret keys, are out. You might ire your security engineer if you do.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Avoid subjective/interpretative messages, anyone familiar with the system should be able to interpret what exactly happened.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Non-human readable formats (like XML, blobs, stack-traces) are considered bad practice if a context is not provided. Always try to give them context.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;And last but not least, make logging part of your coding workflow. You will be thankful to have logs when your system goes down.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Header image: &lt;a href="https://www.flickr.com/photos/90578102@N00/5693655199"&gt;"logs"&lt;/a&gt; by &lt;a href="https://www.flickr.com/photos/90578102@N00"&gt;Rick Payette&lt;/a&gt; is licensed under &lt;a href="https://creativecommons.org/licenses/by-nc-nd/2.0/?ref=ccsearch&amp;amp;atype=rich"&gt;CC BY-NC-ND 2.0&lt;/a&gt;&lt;/p&gt;

</description>
      <category>logs</category>
      <category>code</category>
      <category>operations</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
