bairen
Joined 2 years ago
Joined 2 years ago
We could either maintain a grpc API and a rest API , or a grpc API plus envoy, or 1 rest API.
I am saying we should have picked 1 rest API and only switched to grpc if and when we ran into scaling problems.
Avoiding having to maintain grpc compilers and envoy in our security updates.
Those same endpoints are used with envoy. By our UI.
That choice was made to reduce code bloat.
Rather than maintain grpc and envoy it's easier to just maintain 1 rest API.
The service to service communication was never a bottle neck.
So it was highly prematurely optimized.
We spend way more time keeping evoy and our grpc compilers up to date and free of security issues than I would like.
It's just extra software and thus extra attack surfaces we didn't need. In retrospect
And by doing that we've added extra layers and it ended up slower than it would have been had we just used regular rest.
Further more now we need to keep evoy up to date.
Occasionally they break their API on major versions. Their config files are complicated and confusing.
So, imo, grpc should only be used for service to service communication where you don't want to share the code with a UI and speed and throughput is very very important.
And speed of http 1 rarely is the bottleneck.
It ads an extra layer of complexity most people don't need.
You need to compile the protobufs and update all services that use them.
It's extra software for security scans.
Regular old http 1 rest calls should be the default.
If you are having scaling problem only then should you consider moving to grpc.
And even then I would first consider other simpler options.
A drug that you can actually overdose on.
That's just lying.
Yes there are edge cases. You could get hit by a car with a 140.
It's looking at all cause mortality.
A higher ldl seems to be protective. Of course it is. The body makes it for a reason.
Here is the study https://pubmed.ncbi.nlm.nih.gov/33293274/
A ldl of 140 mg/dL had a overall lower all cause mortality than those with a ldl of 100 or below. Doctors will prescribe a statin at 130.
Good look having a ldl of 140 on a vegan diet. It's not happening.
If you are going to ignore my scientific studies then there is no use continuing this conversation.
I try to only get carbs from fruit, milk, and potatoes to keep the carbs clean.
Take away the sugar, alcohol ,and seed oils and meat eaters are all healthy.
https://www.youtube.com/live/LSIyg_Z_ye4?si=O5uMFqligFcuPS8m
A high ldl over the age of 60 is associated with a lower all cause mortality.
And you are kinda right, having a higher income means you can afford more red meat and live longer.
In other words this study used zero direct observational studies.
No one has ever fed one person a meat diet and another person meat free diet and shown there to be a increase or decreased risk of heart disease.
Daily reminder that Hong Kong has one of the highest meat consumption per person in the world And one of the highest life expectancies.
India has some of the lowest meat consumptions in the world and one of the lowest life expectancies.
So clearly meat is not the demon some of these biased studies make it out to be.
The only real advantage of grpc and protobufs have are speed and reduced data transmission.
And hey fair enough man if those are your bottle necks.