I’ve talked here about distributed systems, micro-services, Event Driven Architecture (EDA) with Kafka, RabbitMQ and that kind of stuff.
So, with this ecosystem, with events, scalable performance, to integrate systems and make the communication with each other, or even react to events, we usually adopt Queue platforms solutions to our systems.
And at this point there is a important thing to think: how my software will be able to respond to a massive events requisitions? Continue reading “Multi-thread Producer Consumer”
It is very common apps have some image processing. Mobile apps usually apply filters. Web apps can get a file from a upload and store it.
In this operations we could store image in different sizes, keeping desired patterns (of sizes) and optimizing the data traffic.
Because of operations like that, I created a helper to use in some of my projects, let me share it. Continue reading “Image Resize with .NET”
The world of technology love web and mobile apps lately.
And we have a massive amount of tools and frameworks to go along. Such as Angular, Ionic, Xamarin, React… even some hybrid concepts like PWA.
But there are huge empires built in Java, .NET… legacy systems or even systems that needs to run in the desktop environment, with Forms or WPF.
For some of this I have a tip to show. The method Start() from Process class. We can find it into System.Diagnostics of the .NET Platform. Continue reading “Process.Start();”
Enum is a beautiful way to give a name to a number. It avoids to make some awkward things like public int constants (people from C/C++ know what I’m talking about).
But even senior developers had moments of doubts about how to make some conversions/operation using enums.
Continue reading “C# enum”
Nowadays is common have distributed systems, or some microservices oriented applications.
These have a lot positive points, for example is easy to scale up, partial deploy, isolate behavior and responsibilities.
And yes, it isn’t perfect. We have some concern points, like the challenge to perform integration tests and communication performance (for instance, when we have round-trips between APIs over HTTP protocol communication).
But if you are designing and implementing something like a microservice API, maybe some lean adjustments can be done to improve performance… nothing so much usual, but when you think about an API with a lot of users accessing simultaneously, it can make a significant difference. Continue reading “C# performance tips & tricks”
Do you know how to shuffle data? Have you tried it? Do you know where you can use shuffled data?
Because usually, when you think to develop a software, you are trying to put order among the chaos. So it is normal try to order the data! Continue reading “Shuffle data with C#”
Microservices, Data stream Processing, Event-Driven Architecture, CQRS… a lot of terms and buzzwords that represents the capacity of run process asynchronously in our softwares.
And they are good, but lets have a little break to think what kind of power we have right in our hands: the modern CPUs.
They usually have more than one physical core, and still manage to emulate more. Continue reading “Taking Advantage of Parallelism in .NET”
Do you know when use an Abstract Class instead of Interface?
What are the differences? How to describe them?
What about a practical example, implementing a repository based on the Dapper example? Continue reading “Difference between abstract class and interface with a practical example”
Have you heard about ORM? And what about Micro-ORM?
We have a lot of software that needs to store data and the “traditional”, and even natural choice, is adopt some Relational Database. In order to simplify the communication with the database and to “glue” the world of Object Oriented (OO) programming languages with the structural nature of the relational data, developers like to use some Object-relational mapping (ORM) framework. Continue reading “Getting started with Dapper”