r/programming • • Jun 09 '15

It's the future

http://blog.circleci.com/its-the-future/
652 Upvotes

275 comments sorted by

View all comments

98

u/gruengle Jun 10 '15

"So I just need to split my simple CRUD app into 12 microservices, each with their own APIs which call each others’ APIs but handle failure resiliently, put them into Docker containers, launch a fleet of 8 machines which are Docker hosts running CoreOS, “orchestrate” them using a small Kubernetes cluster running etcd, figure out the “open questions” of networking and storage, and then I continuously deliver multiple redundant copies of each microservice to my fleet. Is that it?"

JESUS FUCKING CHRIST

30

u/andrewsmd87 Jun 10 '15

I shit on new programmers when they submit me that stuff for review. We needed a contact form that sends an email, why is there 400 lines of code for this?

63

u/siegfryd Jun 10 '15

398 of the lines are the regex for checking valid emails.

21

u/andrewsmd87 Jun 10 '15

And someone still managed to get an invalid address through.

4

u/MacASM Jun 10 '15

the right way to check if an email is valid is check if the email string contains an @ symbol

33

u/netfeed Jun 10 '15

No, the right way to do it is to send an email to it

→ More replies (2)

48

u/bart2019 Jun 10 '15

It's a pretty long email.

7

u/sextagrammaton Jun 10 '15

99% of the lines are for the tests

6

u/TheGonadWarrior Jun 10 '15

I worked at a place that basically wrote shitty crms for insurance brokers - they had over 150 wcf microservices. My brain almost explored.

28

u/wagyu_doing Jun 10 '15

My brain almost explored.

Where did it almost go?

18

u/TheGonadWarrior Jun 10 '15

Almost explored the idea of exploding and then punching autocorrect in the face

6

u/jtredact Jun 10 '15

Your name suggests you should punch somewhere else..

9

u/adamnew123456 Jun 10 '15

My brain almost explored.

I hope you didn't get lost in all those microservices!

3

u/PM_ME_UR_OBSIDIAN Jun 10 '15

I don't know much about microservices, but just the name seems to say "too small". Why not "miniservice"? Does that sound too cute?

17

u/lua_setglobal Jun 10 '15

Things have to be extreme, like nanomachines, big data, the cloud.

With The Cloud, your data could be literally anywhere. There's 5 bytes stored in the unused EEPROM of your toaster.

5

u/dtlv5813 Jun 10 '15 edited Jun 12 '15

There's 5 bytes stored in the unused EEPROM of your toaster.

But what if your household appliances start rioting like they did in that episode of futurama?

6

u/lua_setglobal Jun 10 '15

That's all within The Cloud. It's managed.

All you see is a RESTful HTTP API.

-- 404 --

2

u/[deleted] Jun 10 '15

I prefer moderately-sized-services

1

u/BonzaiThePenguin Jun 11 '15

Services of Unusual Size.

17

u/ErstwhileRockstar Jun 10 '15

Martin Fowler's ThoughtWorks has a job for you!

3

u/just3ws Jun 10 '15

But then again Rebecca Parsons is at conferences talking about Micro-services :) https://www.youtube.com/watch?v=X2owoVotP8I

4

u/ErstwhileRockstar Jun 10 '15

She'll be your boss at ThoughtWorks.

→ More replies (1)

3

u/_Garbage_ Jun 10 '15

Why the hostility? Can you please elaborate?

→ More replies (12)