Juan Gómez retweeted
¡No os perdáis el taller que impartirá @jdortiz el próximo 21 de noviembre sobre Unit Testing en Rust!
Más información y RSVP: meetup.com/madrust/events/30…
Juan Gómez retweeted
The bullshit asimmetry: the amount of energy needed to refute bullshit is an order of magnitude bigger than to produce it.
Juan Gómez retweeted
A Kafka in the cloud doing 30MB/s costs more than $110,000 a year.
A $1,000 laptop can do 10x that.
Where did we go wrong? 👇
The Cloud. Namely - its absurd networking charges 👎
Let’s break it down simply:
• AWS charges you $0.01/GB for data crossing AZs (but in the same region).
• They charge you on each GB in and out. Meaning each time a GB passes, you pay twice - for the one who sends it (outgoing) and the one who receives it (incoming)
• For a normal Kafka cluster with replication factor of 3 and a read fanout of 3x, you are going to be charged:
• 2x for 2/3rd of the produce throughput
• 4x for 100% of the produce from replicating it
• 6x of 2/3rd of the produce throughput for consumption.
(but it can get a lot worse - read until the end to see)
Simple example:
• 3-broker cluster, each in a separate AZ
• 3 producers, each in a separate AZ
• 3 consumer groups with 3 consumers each, each group with consumers in a separate AZ
The producers are producing 30MB/s in total to the same leader.
2/3 producers are in a different AZ, so 20MB/s of produce traffic is being charged at cross-zone rates. 👌
It’s charged both on the OUT (producer’s side) and IN (broker’s side).
The leader is replicating the full 30MB/s to both of its replicas.
This is again being charged both on the OUT (leader’s side) and IN (follower’s side), for both replication links. (60MB/s)
Then, each of the 3 consumer groups has 3 consumers.
All consumers read from the leader, with 2/3 in a different zone.
This results in 20MB/s of consume traffic charged at cross-zone rates PER GROUP. (60MB/s total)
Again charged both on the OUT (broker’s side) and IN (consumer’s side).
The total amounts to 140MB/s worth of cross-AZ traffic. Charged both ways.
When one MB is $0.00001/s, this means we’re paying $0.0028/s. 🤔
That’s:
• $241 a day 😕
• $7500 a month 😥
• $88,300 a year 🤯
It all goes down the drain on network traffic ALONE. 🔥
What about the hardware?
Quick napkin math assuming:
• 7 day retention
• all of the data is on EBS (not using tiered storage since it's not GA yet)
• keeping 50% of the disk free for operational purpose (don't ask me what happens if we run out of disk)
• the 3 brokers are running modest r4.xlarge instances (kinda overkill but hey, why not)
We'd pay:
• $19,440/yr for the EBS storage
• $6,990/yr for the EC2 instances
That’s right - you’re paying just $26.4k/yr for the hardware and 88.3k for the network (3.3x the hardware)
For a total of $115k/yr. 💸
I’m not even counting load balancer costs, which could be $12k by some quick napkin math too.
How ridiculous is that? 😂
Want it to get more ridiculous?
This calculation assumes you’re hosting your own Kafka cluster in the same AWS account.
💡If you use a managed Kafka provider that’s not AWS, or otherwise just another AWS account, you’re typically connecting to them through a public endpoint.
AWS then charges all traffic at the cross-AZ $0.01/GB rate internet traffic rate, even if it's in the same AZ.
The end result?
$113,000 a year for network costs. 💀
For 30MB/s. (!!!)
btw - 30 MB/s is absolutely nothing for Kafka... 🤡
It is most often network/disk bounded.
Doing 3GB/s is not hard. 👌
The higher throughput you go, the more absurdly large this discrepancy between network and hardware cost becomes.
For example - this exact setup could probably do 3x the traffic (90MB/s), assuming storage space isn't a concern.
Then you'd have:
• $264,000 a year for the cross-AZ rate. 🥲
• $339,000 a year for the internet rate. 💀
Why is this cost (more than 300k a year) and complexity (this calculation) the case when three laptops can run this practically for free?
Where did we go wrong?
Worth Noting:
There are a few optimizations that can be done here:
• consumers can use fetch from follower, which results in free read traffic (no cross-AZ charges) in the first example. But the second example would still be charged internet costs. 🤝
• you can avoid internet costs by VPC-peering or Private Link-ing the two AWS accounts. This is largely what most cloud providers do, otherwise it becomes prohibitively expensive. It can be super complex to do. 🔧
• AWS can give you large discounts (up to 90%+ afaict) on the quoted prices, depending on your usage. It’s unclear what customer gets what discount. 💰
And perhaps the best example - you can use an ingeniously-designed product like WarpStream that eliminates all of this complexity and cost. ⭐️
It's no wonder they got acquired after just 13 months of operation.
Juan Gómez retweeted
The Rust programming language was awarded the Programming Languages Software Award by the ACM Special Interest Group on Programming Languages (@sigplan)! Learn more about the award and the Rust contributors mentioned: sigplan.org/Awards/Software/ Congrats, #rustlang 🎉
Juan Gómez retweeted
‼️ AYUDA‼️
Ayer en la sesión de surf de por la tarde perdí el pie de la prótesis de agua en la playa de Cuberris ( #Ajo, #Cantabria ). Sé que va a ser difícil recuperarlo ya que quizá esté enterrado o la corriente se lo haya llevado pero no soy yo de perder la esperanza 😀.
Juan Gómez retweeted
Interested in code assistants to generate quantum computing code? Check out our latest paper "Qiskit Code Assistant: Training LLMs for generating Quantum Computing Code"
arxiv.org/abs/2405.19495
Juan Gómez retweeted
open source security did actually work in the xz situation:
some random end user noticed unexpected behavior, investigated, was able to look at source, and found the back door
if it was closed source they’d have no idea if it was working as expected or not
Juan Gómez retweeted
Maybe you haven't noticed yet... 🚀 𝗤𝗶𝘀𝗸𝗶𝘁 𝟭.𝟬 𝗶𝘀 𝗼𝘂𝘁! (and also 𝗤𝗶𝘀𝗸𝗶𝘁 𝟬.𝟰𝟲 with extended support, so you can take your time transitioning).
It's time to celebrate with the team and the community. Thanks to all of them!
Read more: ibm.co/3TnPYL3
Juan Gómez retweeted
“why do you have a messy pile of clothes in the chair?”
it’s L1 cache for fast random access to our frequently used clothes in O(1) time – at Berkeley, CA
Juan Gómez retweeted
So folks, let me introduce the KianV RISC-V SV32 RV32IMA Real MMU Linux SoC. I've hacked a bootloader that boots from an SD card, and the design worked without any problems right away. I'm both surprised and shocked, it took less than a month, and we can boot LINUX on the FPGA.
Juan Gómez retweeted
"Twenty-first century managers simply don't have all the right answers ... managers give support and guidance rather than instructions" hbr.org/2019/11/the-leader-a…
Juan Gómez retweeted
Did you know that In Spain we eat a grape with each of the twelve clock bell strikes at midnight tonight.
All homes look like this 👇
Juan Gómez retweeted
Software that has not been released has no value, in fact, it's a liability. So why are businesses so keen on waiting for release dates?
Juan Gómez retweeted
¡Las instituciones están dominadas por militantes de carné!
Pero ha de existir un espacio para la acción política de quienes aborrecemos la polarización que inducen los partidos y las ideologías.
Un canal para influir y contribuir a la mejora de lo colectivo sin hundirse hasta las rodillas en el cenagal de mediocridad y demagogia del debate político público.
— Progresistas versus conservadores
— Socialismo versus capitalismo
— Globalismo versus nacionalismo
Son falsas dicotomías. El mundo actual es complejo, y las viejas ideologías que han gobernado el mundo por siglos no dan respuesta a los retos del presente.
El crepúsculo de la democracia es la tecnocracia: el gobierno de los especialistas.
Pero la sociedad está alienada por los políticos y los medios de comunicación. Han triunfado las apelaciones emocionales sobre los argumentos intelectuales. Los símbolos, consignas y banderas sobre la cultura, las razones y los datos.
La propaganda ideológica tiene al país anestesiado. Hay una España que muere y otra España que bosteza.

ALT La tecnocracia es la perspectiva de un sistema de gobierno en el que los responsables de la toma de decisiones se seleccionan en función de su experiencia en un área determinada de responsabilidad, particularmente con respecto al conocimiento científico o técnico. Las habilidades de liderazgo para los tomadores de decisiones se seleccionan sobre la base de conocimientos especializados y desempeño, en lugar de afiliaciones políticas o habilidades políticas tradicionales.
Juan Gómez retweeted
El @HeavyMental_es de computación cuántica está bien a nivel superficial, como he trabajado 3 años y medio en IBM haciendo computación cuántica y sigo interesado en el tema os voy a dar los libros y recursos que sí tenéis que leer para meteros en el tema. 🧵
Cuando compras un libro de Computación Cuántica por culpa de @HeavyMental_es y te das cuenta que te has pasado de frenada nada más ojearlo
Juan Gómez retweeted
America vs. France... whose bread is healthier? 🍞
Here's the answer & why it could be making a MASSIVE difference to American waistlines.
Get Bio-X4 now 👉 lnk.to/BioX4TwP?utm_term=dvp…



























