Hacker Newsnew | past | comments | ask | show | jobs | submit | ahmetnoid's commentslogin

I'm relatively new in this and recently I've been reading and hearing a lot about how distributed systems are overused and usually a monolith can do a better job etc. I'm working at a company serving millions of customers and distributed systems are utilized, most of my experience as a software engineer was built around this to the point that I was never around a codebase that is 10/20k+ lines of code. I feel like I lack some skills in modular monolith coding skills. My question is what kind of sources can I read to improve my understanding of monolith vs microservices, when to use each, and the tradeoff of preferring one over the other?


The SRE book is a decent reference, but may not be exactly what you're looking for:

https://google.github.io/building-secure-and-reliable-system...

> hearing a lot about how distributed systems are overused and usually a monolith can do a better job etc

> improve my understanding of monolith vs microservices, when to use each, and the tradeoff of preferring one over the other

A lot of this will depend on where you're working. Where I'm at, the preference is for single tasks up to somewhere in the neighborhood of 200 gigs of RAM and commensurate CPU. Our individual servers have just stupid amounts of RAM and CPU on them, and our deployment stack has..... nontrivial amounts of overhead for.... reasons.

But if you're e.g. deploying on AWS, the price optimization point is gonna be different. And if you're deploying while working at Amazon it'll be yet a different tradeoff (cynically, having more to do with pager duty boundaries)


I watched the video at the bottom of the page, and it was all fun and I did laugh. But you lost me at the difference between ق and ك (q and k respectively) They are different sounds and do not have the same pronunciation.


I remember Peter Thiel once said that investing in google is investing against innovation, that the company had no competition for a very long time, and that they see no reason to why they needed to reinvent themselves. As long as there's no threat to the company, they can just maintain the current tech and harvest the green from it. https://www.youtube.com/watch?v=2Q26XIKtwXQ


Scalability is not a feature. If you "need" to scale but don't then you're not delivering to your target market, not delivering is not a lack of a feature it's a net loss to the organization. If you're Twitter/Instagram/Uber/whatever you cannot tell your users to not post or like or request a ride because "right now we don't have the scalability feature"


I don't completely agree here.

Yes, if you can't scale fast enough as you need to, it can hurt your business. Not being able to keep up with demand is a (luxury) problem that every business faces, not just in tech. They would often be called 'growing pains' in a business, and though they are bad, they rarely contribute to the failure of a company.

Starting a startup/service/platform with microservices before you even understand the bottlenecks/market fit/customers is usually not a good idea. You can come a very, very long way with a monolith before you hit performance and scalability limits. And once you do, you can always start breaking things up into smaller services for scalabity. Obviously you need to make sure you are scaling on time to keep up with demand.

'Nail it, then scale it', and 'premature optimization is the mother of all f-ups' are popular sayings for a reason.


I'm not making a case in favor of starting with microservices for your startup, that'd be insane, to say the least. I'm just disagreeing with "scalability is a feature". A feature is every addition on top of your minimum viable product. If at some point it becomes apparent that the business needs scalability, then scalability becomes your minimum viable product.


Still the problem here is we don't _really_ know whether this is genetic or shaped by our upbringing even when it comes to the most egalitarian societies. I'd like to see the same study done on the little left hunter-gatherers bands.


We do know that gender differences in a variety of psychological traits are more pronounced in more egalitarian societies. See e.g. https://www.latimes.com/science/sciencenow/la-sci-sn-women-e...


The study in the topic seems to contradict this, although the summary is a bit confusing:

"Considering gender inequality, the authors report that “in countries of higher gender inequality, women’s stronger preference for working with people versus things compared to men was smaller.” However, this effect disappeared when cultural dimensions were taken into account.

"Instead, it was those countries with greater uncertainty avoidance that had larger differences in interests in people/things between men and women. Uncertainty avoidance refers to the degree to which a culture teaches its members to feel unpleasant in situations that are new, not previously known, surprising, or generally just different from usual."


So do egalitarian countries have high uncertainty avoidance?


Guess what: we're a sexually dimorphic species.

The view that every group of people you care to select is "equal" (whatever that means) is manifestly false.


But this specific thing we do have a strong indication of! But a few hours after birth, infant boys spend a longer time looking at mechanical objects than faces, and vice versa. This is thought to be before any social imprinting has had time to develop.

It's funny that you write this comment in this specific thread, because as far as I know, it's literally the only gender difference we've observed truly since birth. (Besides some physical ones like which reproductive organs are in place, obviously.)


I don't know if it's really important to know for practice. Who care where it comes from if the effect is there and you have to live with it?

It's not that effect being caused by upbringing makes it somehow unimportant, or unworthy of being there.


because if it's biological then you have to live with it (till you get scalable affordable bioengineering) whereas if it's social imprinting then you don't "have to live with it", for that it's going against our biological encoding. Your comment suggest that we should not question upbringing which I disagree with.


Knowing a concrete cultural mechanism that is causing this could possibly open the way to engineering it (or close it completely, depending on what mechanism that is). But would just knowing "it's culture" help? I don't think (personal opinion) we're particularly good at predictably engineering culture.

Look at Sweden, it's been trying really hard and dumping lots of money into gender equality, but there's still very few women in tech. The fraction of women among Iran's CS graduates is greater than Sweden's. And, ironically, plenty of those Iranian women (I'm saying this offhand) go to do PhD in Sweden, to bring up the "gender balance" of CS departments that Sweden is so concerned about.

I'm really unsure whether society is easier to engineer than biology.


This is something really difficult to know, specially because genetic differences can shape behaviors that can be natural selected creating a reinforced loop that reflexes on culture and upbringing.


Very good point. But I'd like to get an accurate answer from science in general, I don't see why more effort shouldn't be put into finding the reason behind what's discussed here. culture and upbringing is a mix of biological tendencies and imposed constructs, and I'd like to know which is which.


Not sure you'd learn the most from the hunter-gatherers, who have the narrowest leeway in their survival and must have everyone doing exactly what they're best suited at. A fat rich society with more money than they can spend, like Norway or Qatar or Brunei, is likely more instructive.


A hunter gatherer society would be the exact opposite of highly specialised ("doing what you're best at").

It has little margin for loss of function, so a poor performer is better and more likely to survive then losing the performance of the function entirely.


I'm pretty sure what they meant was "if you need to go and hunt and kill your food, then the physically stronger members of the group have to go and do that, and that means someone has to stay and look after the kids and the members of the group who can produce food for the infants likely fit that bill"


I'm sure there must be studies done on apes that would clarify that exact question.


There are. And they confirm, so the difference also exists in apes.



Why is that a problem, and if it was due to upbringing then why that would be a problem?

> I'd like to see the same study done on the little left hunter-gatherers bands.

I don't see what that would prove. Men being biologically better suited for many types of primitive hunting, and women having the responsibility of pregnancy and nursing infants, would have a massive influence on the culture and structure of those societies.


So .. you've had no actual experience of living with hunter gathers then?

The women do a lot of work digging ants [1], digging lizards, trawling through sands for cockles [2] (and leaving massive midden piles in their wake over centuries), and retire to a life of painting and laughing at the quaint notions of the clueless.

Many such cultures share childcare across a wide network of extended kinship [3], both male and female - everybody works to bring food, tools, and culture to the group.

[1] https://www.abc.net.au/news/2016-06-16/honey-ant-hunters-and...

[2] https://en.wikipedia.org/wiki/Tegillarca_granosa

[3] https://aifs.gov.au/resources/policy-and-practice-papers/str...


> So .. you've had no actual experience of living with hunter gathers then?

This is not an argument.

> The women do a lot of work digging ants [1], digging lizards, trawling through sands for cockles [2] (and leaving massive midden piles in their wake over centuries), and retire to a life of painting and laughing at the quaint notions of the clueless.

Great.

> Many such cultures share childcare across a wide network of extended kinship [3], both male and female - everybody works to bring food, tools, and culture to the group.

And yet despite having nary a biology degree among them, even they will tell you that men can not gestate or nurse a child. And that men are biologically more suited to some types of primitive hunting.


Those are just two points out of a long list of actions required in a society. I don't think it really adds that much weight to the argument, even though it is true.

To go back to your other comment:

> Why is that a problem, and if it was due to upbringing then why that would be a problem?

It would be a problem for upbringing as that is something adults have agency over. It's a bias that may not need to exist.

A great example of that is when women were highly represented in computer science as it was initially becoming a field of study, but later got pushed out by boys who'd had technical skills nurtured in them when they were young while the girls did not. Oversimplifying that a little bit, but most of us have experienced it or seen it in action.

Women in STEM is a supply issue that starts with parenting, and continues all the way along the pipeline, with schools, universities and peers all filtering girls out of the pipeline that puts butts in seats in tech roles, even though they're perfectly capable of the roles.


> Those are just two points out of a long list of actions required in a society. I don't think it really adds that much weight to the argument, even though it is true.

I think it does add a lot of weight. Certainly it casts doubt to the idea that you could observe a primitive hunter gatherer society to rule out any kind of cultural bias.

> It would be a problem for upbringing is that is something adults have agency over. It's a bias that may not need to exist.

This is just restating the assumption. Why is that bad? Culture causes an innumerable number of "biases" to exist, not just between different sexes either. Would there be a problem if people living in one state liked country music and in another liked rap? Should such a learned bias be stamped out? How about pizza vs hot dogs?

> A great example of that is when women were highly represented in computer science as it was initially becoming a field of study, but later got pushed out by boys who'd had technical skills nurtured in them when they were young while the girls did not. Oversimplifying that a little bit, but most of us have experienced it or seen it in action.

I've never heard of it before and I'm skeptical it's true, so I don't know how great the example really is. But let's set that aside for a minute and think about it if it was true it's not a case of a learned cultural personal preference by the women, it was that they got "pushed out". That is the problem.

But that's really besides the point here I think. I don't see why you go to a different situation to claim this one is bad. Because we have the actual at hand, which is that women like working with people and men like working with things. I'm asking specifically why that would be bad, not whether there are any aspects of culture and learned behavior that could be bad (certainly there are many examples that can easily be argued are bad, and many others could be argued are good).


> It would be a problem for upbringing as that is something adults have agency over. It's a bias that may not need to exist.

There's no evidence that adults are creating this bias. They are not.

On average women find tech work grindingly boring.

Why is it a problem? It isn't. Just let people do what they want with their lives.


> On average women find tech work grindingly boring.

No evidence of that.

> There's no evidence that adults are creating this bias. They are not.

Are you absolutely certain? It's the subject of quite a bit of research.

> Why is it a problem? It isn't. Just let people do what they want with their lives.

Kids don't know what they want to do with their lives, they get lead down various paths by their upbringing. Plenty of people end up in careers they don't like because it's what their parents wanted them to do, regardless of gender.


>> On average women find tech work grindingly boring.

> No evidence of that

Are you for real? Have you ever tried to talk to any women about technology? With occasional exceptions, the response you will get is a face that has completely glazed over.

This is only a problem for people who believe in egalitarian ideology - where every group is supposed to be at all times "equal" in ways that are simply not bourne out in reality.


> Have you ever tried to talk to any women about technology?

All the time - they love technology.

Sue <redacted> runs all the books on the local family farm (which is a large multi million $ enterprise), she pulls in all the GPS logs to a NAS, databases the livestock tags, has bots watching the stock sales.

Robyn runs a super computing facility for the local SKA project (Square kilometre array) after being the Vice C. of the local university, after consolidating the Comp Sci, Math, Engineering Streams overlap into a specialised STEM course.

Danni next door hacks J.Deere software and runs an agronomy consulting group with web prescence.

Joy left running a heavy industry electrical contract company behind after selling it and now runs a GIS consulting group.

I'm guessing it's you and where you are - in this part of the world there are plenty of women into tech.


This is so tedious. I said there were plenty of exceptions. As with many human traits it's a distribution with long tails at the extremities, and plenty of overlap between groups.

This doesn't in any way negate the existence of a mean difference between groups. In the real world innate sex differences are a fact of life.

That's the whole point of the paper attached to this thread.

Egalitarians believe that society would be better off if we made all efforts to flatten these differences out or ignore them. This is an article of faith, that is in no way reflected in the real world.


The interesting part here is that there are plenty of exceptions - and those exceptions tend be clustered in different societies and cultures.

I'm not advocating you change wherever you're at, I'm just delighted that where I am women drive road trains & haul paks, design ships, wire buildings, advance astrophyysics, etc (and, for that matter, so do the men).

It certainly makes your bemoaning "have you tried talking to women about tech?" a non issue hereabouts.

If you're happy with your bit of "the real world" (ie. a subset of the actual real world) then good on you, go forth and enjoy - and perhaps bemoan less.


This is just more egalitarian cope.

Of course there are local differences which is why these need to be normalized with a population-wide sample. In that case, sex differences present themselves clearly.

As the article states, surprise surprise, on average compared to men, women are more interested in people than things.


> Of course there are local differences

Differences by country and culture - the reason why are the interesting questions.

> these need to be normalized with a population-wide sample.

Need to be?

The US (for example) has a large population ( ~360 mill ) with a poor system of government and an excess of hold over odd little religious groups (and home grown product like Mormons, etc).

Other countries have smaller populations (eg 25 million here), better more responsive system of government with better oversight, better education, better health, etc.

I see no benefit in being blended in with a bloated mass of objectively worse and dragged down to US levels.


How could it be reflected in the real world if we're still encumbered by the status quo? That's like pointing to a lack of EVs and saying see, no EVs, people don't want them. (Talking specifically about women in STEM here)


You have to prove that we're "encumbered" by anything, and that the status quo is not merely the reflection of people's natural preferences, and that it would be better for society to break the status quo.

You can't prove any of these things. They are dogmatic assertions


You wanted evidence, not anecdotes. But if you want anecdotes then yes, I've even worked with a bunch of women in tech. You can't make generalizations based off your own experiences though, obviously I'll bump into women in tech while working in tech. But similarly, if the people you bump into aren't already in tech, then it shouldn't be too surprising that they're not as excited as you are about it. You believe they're not in tech because they are born without the ability to like it, I believe it's because more often than not they're guided away from it during their upbringing.

You can be right that it's common to see and still wrong that it's an innate part of being a woman.


> You can be right that it's common to see and still wrong that it's an innate part of being a woman.

It's not "an innate part of being a woman".

It's an innate part of being human.

Last I checked, around 2% of people go into tech. That means that 98% of all people prefer something else.

Is there something wrong with them that needs explaining? Don't think so.

Is there something wrong with society because these 98% of people enjoy something else more? I don't think so.

Who made the 2% of people who like being in tech the standard? So that any deviation from this standard must be explained by ... evil forces? Genetics?

Is there something wrong with the 2% of people who do enjoy going into tech because 98% of people do not? I don't think so.

Now the genders skew slightly differently, for men it's more like 97% prefer to do something else, and with women it's 99% who prefer to do something else. So what? Let people do what they want to do.


> It's an innate part of being human.

That's the point I am making. My point is not that everyone should be in tech, my point is that there is a disparity and if we assume everyone is equal then there shouldn't be.

> Now the genders skew slightly differently, for men it's more like 97% prefer to do something else, and with women it's 99% who prefer to do something else. So what? Let people do what they want to do.

That is exactly what I want, for people do to what they want, but one group is systemically discouraged from taking on tech even if they want to. I am frankly disappointed that this has to be spelled out, that is surprising for this forum.


> if we assume everyone is equal then there shouldn't be

Incorrect assumption. Everyone is obviously not equal.

For example: 2% of people like tech enough to work there, 98% do not. These two groups are obviously not equal.

> but one group is systemically discouraged from taking on tech even if they want to

What evidence do you have for this "systematic discouragement"? Of the 98% of people who do not go into tech? How so?


>> if we assume everyone is equal then there shouldn't be > Incorrect assumption. Everyone is obviously not equal.

I was quoting you. There are some practical differences obviously, but I don't believe any of them should mean women are less inclined to enjoy technical jobs.

> What evidence do you have for this "systematic discouragement"? Of the 98% of people who do not go into tech? How so?

Speak to women who are in tech, ask them what their experience was like. I haven't got any studies for you I'm afraid, it would seem we're debating in experiences so I don't think this will be constructive.


> I was quoting you.

No you were not. I did not write "everyone is equal" anywhere in the post you responded to. In fact, I neither wrote 'everyone' nor 'equal'.

> Speak to women who are in tech, ask them what their experience was like.

Anecdote ≠ data and is not evidence for anything "systematic".

> I haven't got any studies for you I'm afraid

Because there aren't any that show this, because it's not an actual thing.

> we're debating in experiences

I am debating facts, you are debating what appear to be anecdotal experiences and subjective evaluations of those experiences from which you then extrapolate mightily.

If I told you what my experience has been in tech, you probably wouldn't believe me. And if I were to present my personal experience as that of a woman, you would think it proof for the systematic discrimination against women in tech. Except that it isn't, of course, because it all happened to a man.

Anyway, people have studied this empirically, and this is what they found:

"Our early analysis suggests that men and women actually appear to leave engineering at roughly the same rate and endorse the same reasons for leaving."

https://sites.uwm.edu/nsfpower/gears/

And of course this is why "just ask <group x>" is not a valid method for ascertaining discriminatory practice. You also have to ask other groups to see if the practices differ based on what group you belong to.

In tech, they don't. In fact, women in tech generally report slightly better treatment than men do (different survey). Tech is a shit show for everyone.

A very well-compensated shit-show, mind you.

(And since men are und greater pressure to earn, they are probably also more likely to tolerate a shit show if the pay is good).


> my point is that there is a disparity and if we assume everyone is equal then there shouldn't be.

Yes but why do you assume that? What if your assumption is wrong, as the above study shows? Then the disparity would be explained simply by the natural proclivities of different groups of people.

> one group is systemically discouraged from taking on tech even if they want to

Again this in another article of faith.

Notice how feminists always use the passive voice: women are "discouraged", not "these specific people are conspiring to discourage women for this specific reason".

It's a motte-and-bailey trick to prevent anyone being able to call out their nonsense claims.

Why does anyone want to discourage women from going into tech? My own daughter shows some interest in these things. Perhaps she will enter the field - or perhaps she'd prefer something else. I don't mind. She should do whatever would make her happy.

It just turns out that women on average are slightly more likely to choose something else than man are.


> Notice how feminists always use the passive voice

Yeah, that one took me a while to figure out, but once you notice it you see how pervasive this trick is.

For me, it was the thing about women doing more housework in relationships. Or rather "women are required to do more housework". But it wasn't actually their partners requiring this. Men generally don't give a crap, and this doesn't really change whether they are in a relationship or not.

"But women are held to a higher standard". Ah, the passive to the rescue! But by who? Again, men don't give a crap. Well, it turns out that it is women holding each other to higher standards, more or less exclusively. But "women are oppressing each other" just doesn't have the same ring to it...

> "these specific people are conspiring to discourage women for this specific reason".

Turns out there actually are people making that claim. Can't find the actual text right now (it was a PhD thesis turned into a book, IIRC), and it claimed that the move to make CS more like engineering was a cabal of men in CS trying to kick the women out.

The mind boggles.

> Why does anyone want to discourage women from going into tech?

Exactly. No one, that's who. And in fact, if you look around, you see tons and tons of encouragement, special events, special courses, special bootcamps etc. A recruiter here in Europe recently told me she has to get approval from US headquarters if she wants to suggest a straight white male for a role (although that was senior executive recruiting, not tech).


> I believe it's because more often than not they're guided away from it during their upbringing.

That is indeed an article faith - one that is disproven in reality

Sex differences manifest more strongly in more egalitarian countries:

https://pubmed.ncbi.nlm.nih.gov/30206941/


The reason is genetically. There is not difference between more feminist countries and the less ones.


Genetic, epigenetic, memetic. Why does it matter?


No.

Why do female chimpanzees prefer to play with human dolls more than male chimpanzees if it's not a DEEP GENETIC DRIVE?


Female chimpanzees prefer to play with objects and use them as tools more than male chimpanzees overall. Most often, female chimps are observed using them as play weapons.[1]

On one single occasion, some female chimps were observed carrying some logs and "slapping" them. This was interpreted as playing with dolls and then it was all over the news that female chimps play with dolls.[2]

Humans aren't the only primates with culture. Chimp behaviour varies significantly according to the culture they are in, just like human behaviour does.

[1] http://news.bbc.co.uk/2/hi/science/nature/6387611.stm

[2]https://www.cell.com/current-biology/fulltext/S0960-9822(10)...


Tangentially, I think I read somewhere once that there's more genetic variance between two random chimps from two chimp tribes in the same forest than between two random humans from opposite sides of the planet.


I don't understand what does this has to do with anything? how does that fit in things vs people? a doll is a thing after all? I'm not saying there's no deep genetic drive at all.


In my workplace we use zoom breakout rooms as an alternative. When we have a meeting we move to the main room and have it there. Otherwise each member is in a breakout room.


oh, that's kind of clever. So when not otherwise in a zoom, each of you hang out in your own breakout room so others can "drop in"?


Exactly. If I want to drop in all I need to do is to check the breakout rooms list then move to the room where my colleague is. And once done I can go back to my breakout room. We also use it when pair programming remotely. It's quite effective and it eliminates communication barrier.


Very cool. Thanks for the reply.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: