The activities we do to stay healthy are not spoken of for good manners, to avoid annoying the interlocutor. We tend to avoid talking about our sex life with the family because it’s terribly embarrassing. We don’t tell someone we’ve just met that he has parsley in his teeth.
But there isn’t any reason to don’t talk about the following things. Personally speaking, I can’t imagine how much even knowing just one of the following concepts would have changed my perspective. …
All the code including deploy (Docker-Swarm) and testing environment (JMeter) is available at https://github.com/GaetanoPiazzolla/spring-boot-vs-node-js free for you to play with and customize.
We will evaluate the performance of four REST JSON endpoints:
They found the hanging body on a sunny Monday afternoon. The screen was still displaying the last assigned task regarding a bug fix — misty, convoluted sentences without significance.
In the career of a developer this is a common part: the will to take an end to our pain. Suicide is never the answer — maybe we can reduce suffering related to bug fixing tasks using HAR files.
Content of the story:
In the next six sections there is my point of view about the 6 main DOWNSIDES of microservices development — and what I think could be done to reverse some of them to UPSIDES.
Step 1) 😎 Deploy a cool new feature
Step 2) 😱 Panic after 4 days when someone tells you that the new code impacted another piece of the application, causing the override with nulls of several fields in the user table
Step 4) 💾 Recover some data from a past database dump
Step 5) 😱 Panic AGAIN when you notice that 6k user’s row are still missing data
Step 6) 🔎 Discover that using Kibana luckily you can manually recover user information written on Log
Step 7) 😱 Panic SOME MORE when you think that you have to do this…
I’ve come to know lately that the IMG tag has 3 attributes that if set correctly can greatly improve the loading time of a web page. Check them out!
This article is a summary of the article by smashing magazine, with focus on what I think are the most important features therein listed.
With this simple attribute on the IMG tag, clients will load the image when specified, eagerly or lazily.
alt="Description of the image"
loading="lazy" / "eager"
It’s a good strategy to avoid clogging the clients with several requests, loading the critical elements of the…
GitHub includes a very nice statistic page that shows some information about the activity going on in a repository. Still, using GitStats, an open-source tool, you can generate some additional and really interesting information. Also, not every project is hosted on GitHub or GitLab, if that's the case, this tool can come in very handy.
As the generated reports are simple Html Files and images, I’ve hosted an example for you to see. In the latest part of the article, I’ve included a simple guide for how to run GitStats on your own.
This approach has one big disadvantage: if the file is really big, this process will require a lot of RAM. If the server does not have it, it’s impossible to do this. On 64 bit systems, by default the maximum amount of memory that NodeJS can use is 2GB.
We can increase the limit using this flag in the command line when running our app:
--max-old-space-size=<memory in MB>
or better, by setting this environmental variable:
NODE_OPTIONS=--max_old_space_size=<memory in MB>
So that we are sure that every thread and process instantiated by nodeJs uses this option when running. Anyway, I’ve found…
My dog doesn’t like the leash at all. Following the dog trainer’s advice, I’ve started using treats to make her want to get closer; in this way, the process is improved a great deal.
According to the collective imaginary, a dog’s leash is not the symbol of a mechanism of coercion, but rather of love. We do not want that the beloved runs away or gets stretched under some car’s tires or bitten by a stray dog. Maybe we avoid thinking, unconsciously, about the sacrifice that has been done by millions of dogs.
Nevertheless, it is said “happy as a…
Tech. leader and passionate developer.