27.04.2017   Linklog:  TechWo-MarceStarlet: Evented vs Threaded

Evented vs Threaded

On this post I talk about the main differences between the Threaded and the Evented models and how they work by doing an analogy of a real situation that easy explains both models.

The Threaded model’s analogy is about a bank and how the people is assigned to a cashier, if the cashiers are busy then the people will start to queue, so this is how the resources are blocked, until a cashier is free to atend a person, that resource or thread is blocked. Wait is never confortable, and it could be a pain head if we want to manage a thread pool since we never could know exactly how many threads will be needed in a moment, this is also hard to scale vertically.

About the Evented model we can do an analogy of a butler in a mansion, taking all the requests by the guests and delegating the tasks to the corresponding employeers in the house like the housekeeper, the chef, the driver, gardener, etc. entrying in a loop on its functionlaity, taking requests and delegating. Using an evented model we can avoid the blocking resources due the butler or event loop is taking all the requests and deligating them ASAP entrying in an asynchronous routine that allow us to continue the code and receive the response of our request when is ready. It is easy to scale in the code as well as the physical machines, vertically and horizontally.



For about 3 years I’ve been involved in a women in tech community that has the objective to increase the number of women participating in technology, and trying to achive this main objective I got the idea to start a blog project that gathers some of the brightest women I know as writers of this blog and that for a year will write a post about technology every week. I know most of those selected women for this project and the others that I didn’t know, I’ve been starting to see their talent.
Read more


Now a days I’ve heard that EVERYBODY must know how to program, due the technology is everywhere, due your abilities and skills will be developed in a creative way. I think all of these arguments are valid and I really agreed them, but I believe that be a programmer is now more than just know how to program. If everybody learn how to program, I don’t think all become into programmers, the evolution of the software is turning the meaning into a more complex and complete definition.
Read more


MQTT - Concepts & Usage The last part of this serie of posts about MQTT will cover some concepts about the protocol that essentialy will show us the boundaries of the protocol and how it handles the connections between clients and the broker. Connection Let’s start by defining the MQTT Connection. The connection initiates when a client sends a CONNECT message to the broker, then the broker responds with a CONNACK and a status code.
Read more

Messaging Systems

17.04.2016  in messaging , java using tags messaging , java , JMS , JMS Patterns

What “Messaging System” means? The Messaging Systems exist since some years ago but they’re not so popular as other kind of systems. A Messaging is usually use in an enterprise environment. An enterprise has many different applications working independently that have been built using different languages and platforms, if the enterprise needs to communicate them by sharing data and process in a diligent way, How the enterprise can do this? Using Messaging Messaging allows the enterprise to share data from applications that have been built in different platforms and uses different kind of data by transforming the data in a common customized or not customized format and transferring the packed data between the applications.
Read more


MQTT - The protocol Now that you know the reason of the existence of MQTT and where to use it, you can learn how it works and then how to use it. My philosophy: Only when we know the reason of why a technology exists and where we can apply it, the technology becomes real, otherwise does not exists. Now some context, take it from Wikipedia the definition of protocol: In telecommunications, a communications protocol is a system of rules that allow two or more entities of a communications system to transmit information via any kind of variation of a physical quantity.
Read more


INTRODUCTION What about MQTT? Have you heard about MQTT? Hope you have, but if you haven’t, don’t worry you’ll be hearing more about it in the next months since it’s becoming popular. MQTT is the most popular protocol used for IoT (internet of things) but don’t get confused, MQTT isn’t only for IoT, as it is a protocol it can be used in most of the communication situations, like TCP/IP does, but there are some great things that becomes MQTT special and unique to solve a communication problem.
Read more

Welcome 2016

14.01.2016  in projects , development , about using tags 2016 , welcome

El comienzo/The begining Hola/Hi Mi nombre es Marcela Sena conocida como MarceStarlet, tengo 28 años, soy Ingeniero de Software y vivo en Guadalajara, Jal., México; les doy la bienvenida a éste mi nuevo blog de programación/conceptos/tecnologías/herramientas/tendencias/ciencias computacionales/etc., esperando sea de su agrado. La idea de este blog es compartirles lo que sé, lo que estoy aprendiendo, y lo que me gustaría aprender, todo relacionado con las ciencias computacionales. El reto para mi es escribirles frecuentemente; al menos una vez al mes encontrarán un post.
Read more