Iván Rodríguez retweeted
UI/UX Designers, here's a go-to tool for generating UI colour palettes.
Radix colour is an online colour tool for a purpose-driven colour scale. Customise hues for borders, backgrounds, text, and more.
Bookmark it for later 💜 you'll love it
Website → radix-ui.com/colors/custom
Iván Rodríguez retweeted
Why do software deployments turn into nail-biting situations?
It’s because deployments are treated as do-or-die scenarios. Once you’ve released something, there’s no going back.
But most times, there’s little need for so much panic.
For a recent project, we made deployments fun again.
How?
By using the Blue/Green deployment strategy:
[1] We created two identical prod environments. One was named the blue and the other green.
[2] The blue environment represents the current version. The green had the new changes.
[3] Since we were on AWS, this meant deploying the application on separate EC2 instances backed by different ELB load balancers.
[4] Initially, Route 53 routed all the traffic through the blue ELB.
[5] To direct the traffic to the new version (green), we switched Route 53 to point to the green ELB instance.
This is where we hit a problem.
There was a bug in the green version. Like all good bugs, it was discovered only after we switched.
But there was no panic.
We immediately switched back to the blue version and a fix was made on the green version.
This time, we decided to move ahead gradually.
Using the weighted distribution in Route 53, we just shifted 10% of traffic to the green version. The rest of the traffic continued to the blue version.
This approach is also called Canary Testing.
When we found no issues, we ramped up the traffic to the green version - first to 25%, then 50% and then 100%.
Finally, the blue version was decommissioned and green became the new blue.
There were a couple of considerations:
👉 The change didn’t involve the database. Otherwise, we would have included that as part of the replicated environment.
👉 Yes, it was costlier to maintain two parallel environments. But the workload was critical and we needed a quick way to move to the previous environment.
So - have you used Blue/Green deployments?
And what has been your experience like?
Iván Rodríguez retweeted
Want to quickly see how much longer your @angular project will be supported?
I hacked together this little tool just for that!
npx ng-ver
Iván Rodríguez retweeted
✍️ blogged!
#angular signal inputs
dev.to/this-is-angular/divin…
Iván Rodríguez retweeted
How to Make a Tech Video for YouTube
In this post I share the things I learned from creating my latest YouTube Video:
- Use a storyboard to create a good story
- Clap to speed up editing
- Should you record your voice separately?
...
Check it out here: blog.felixge.de/how-to-make-…
Iván Rodríguez retweeted
Tip: @ChromeDevTools can now override the content of Fetch/XHR requests! Great for mocking APIs without waiting on backend changes!
This and lots more in Chrome 117: bit.ly/wnd117
Iván Rodríguez retweeted
Me ssh into my Linux server using a mobile device in an emergency. At least I had the ssh pub key setup cyberciti.biz/faq/how-to-set… , but it was still painful.
Iván Rodríguez retweeted
The jooq-testcontainers-codegen-maven-plugin to generate @JavaOOQ code using @testcontainers and Flyway migrations.
github.com/sivalabs/jooq-tes…
Iván Rodríguez retweeted
JavaScript import-maps are now supported cross-browser! 🗺️ web.dev/import-maps-in-all-m…
<script type="importmap"> can define a mapping of external module names to their corresponding URLs, making it easier to use in your code.
![<script type="importmap"> { "imports": { "lodash": "https://unpkg.com/lodash@4.17.21/lodash.js" } } </script> <script type="module"> import _ from 'lodash'; console.log(_.map([1, 2, 3], (n) => n * 2)); </script>](https://pbs.twimg.com/media/FsUnUVJacAAnMZI.jpg?name=small&format=webp)
ALT <script type="importmap"> { "imports": { "lodash": "https://unpkg.com/[email protected]/lodash.js" } } </script> <script type="module"> import _ from 'lodash'; console.log(_.map([1, 2, 3], (n) => n * 2)); </script>
Iván Rodríguez retweeted
The theme of today, #WorldWaterDay2023, is acceleration of #change to help solve the #water and sanitation crisis.BuntPlanet aims to work alongside the water industry to help deliver water in line with the targets of UN #SDG6 buntplanet.com/solutions/
#worldwaterday #AI #WaterDay
Iván Rodríguez retweeted
Database Sharding 101 🔽
Back in the day, sharding was a prevalent technique for scaling the (often relational) storage layer behind a monolith.
It became less popular with the rise of microservices and specialized DBs, but monoliths are coming back! 🙈
architecturenotes.co/databas…
Iván Rodríguez retweeted
Here is how I implemented dark mode on my website. Invert all colors, set a nice background, and invert again images and emojis so they look correctly.
Iván Rodríguez retweeted
Java Tip 💡
Do you handle REST API versioning in your applications? Micronaut🚀 is the only popular Java☕️ framework that provides a very handy built-in mechanism for that 👇
🏷️ #java #restapi #versioning #micronaut
Iván Rodríguez retweeted
`a = 0-x` is about 3-10x faster than `a = -x` 🤯
Let's jump into JavaScript VM details to see why and how to guard against this VM de-opt:
🧵🪡🧶
Iván Rodríguez retweeted
It has been more than 4 years since I joined Google!
To prepare for my engineering interview I spent over 2 months solving coding problems and I pushed them on GitHub.
You can find all of them at github.com/mgechev/google-in…


























