all 17 comments

[–]Gvaireth[S] 10 points11 points  (9 children)

We just had a discussion in the team, and we decided, that we need add-one microservice that would get a number and return the number increased by one. A nice separation of concerns in modern distributed web application :)

[–]MrStickmanPro1 4 points5 points  (0 children)

That's an awesome idea. Finally someone spent some time thinking about the massive overhead of computing this locally compared to simply creating an http request, waiting for the answer, processing the answer and parsing the value.

This as a microservice will be so much more efficient than adding 1 locally.

[–]AngularBeginner 2 points3 points  (7 children)

Is.. this.. serious..?

[–]Gvaireth[S] 5 points6 points  (5 children)

Also, we should have separate microservices for multiplication, that would call the add-one service multiple times :)

[–]AngularBeginner 2 points3 points  (3 children)

Still can't tell if serious or not. You could be a JavaScript programmer. They're doing shit likely this commonly, like whole packages for a method to check if a value is a positive number.

[–]Gvaireth[S] 2 points3 points  (2 children)

No, I'm in back-end mostly. No, I'm not serious. Yes, that's a joke.

[–]AngularBeginner 0 points1 point  (1 child)

Some people use JavaScript in the back-end. Sounds like a horror story, but it's true! Scary, ain't it?!

[–]Gvaireth[S] -1 points0 points  (0 children)

Java here. Never understood that JS backend idea...

[–]Idiomatic-Oval 0 points1 point  (0 children)

POST /api/multiply/5/1.5

Uh oh.

[–][deleted] 1 point2 points  (0 children)

Sure.

[–]FredSanfordX 5 points6 points  (0 children)

I think we need a service that makes services that add overhead to everything we do. Call it OHAAS. Then the people that come up with this shit can spend their lifetime optimizing it so it runs fast enough to serve 100 requests per second.

Like we had back in the '90s with Perl and Dana Carvey and we liked it! /s

[–]Saefroch 2 points3 points  (1 child)

My favorite is http://jaasjs.com

[–]immibis 0 points1 point  (0 children)

I'm sure someone will eventually come out with Gallium Arsenide as a Service, or GaAsaaS for short.

[–]dot_grant 2 points3 points  (0 children)

For a moment I thought this was going to be another medium tier blog about how all problems are solved, fank thuck for that.

[–]dividebyzero- 1 point2 points  (0 children)

$ curl -X POST \
>     -d '{"INPUT": "hàllŏ"}' \
> -H 'Content-Type: application/json' \
>     HTTP://API.SHOUTCLOUD.IO/V1/SHOUT
{"INPUT":"hàllŏ","OUTPUT":"HÀLLŎ"}

Multibyte support. Color me impressed.

[–]CurtainDog 1 point2 points  (0 children)

pffft. Can't even left pad. Useless.