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

At Netflix scale, there most certainly is a service discovery registry where each service registers itself. The registry can be used for other services to find out how to reach each service, what regions those services are deployed in, how many instances of each service there are, what operations that service supports, etc.

https://devopscube.com/service-discovery-explained/



The author addresses that comment in an edit - seems like the commenter stretched the truth a bit. Manually cross-posting shouldn't be a suspendable/bannable offense


How many posts before it does? From https://news.ycombinator.com/item?id=36216654 there is this image: https://i.imgur.com/scny5VP.png

That's more than the dozen (now nine) that show up in https://www.reddit.com/r/apolloapp/duplicates/13xy42u/now_th...


I've used this same approach as well. Testcontainers is a nice way to help with this!

https://www.testcontainers.org/


I rolled my own with docker for a few years and recently made the switch to testcontainers. So far so good - but if you’re in an environment or language where test containers are difficult, rolling your own really it ant to hard. It also keeps you honest with maintaining good migration scripts.


What is testcontainer? Reading the first page I don't understand what benefits it buys me:

> Testcontainers for .NET is a library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions. The library is built on top of the .NET Docker remote API and provides a lightweight implementation to support your test environment in all circumstances.

Edit: Ok, example helps. https://dotnet.testcontainers.org/examples/aspnet/

I can declare docker infrastructure from my code, right?


Yep instead of starting the container in the build script it’s nice to start it in the test code file itself.


Biggest benefit is that it's open source and free - for business use Docker Desktop is a paid service


Most of the functionality is coming in iOS 16: https://www.macrumors.com/2022/06/08/ios-16-weather-app-upda...


The hashes are computed from images that live in iCloud - how is this different?


Suppose Apple flags some image in iCloud using a hash that was probably sent from the device. Do they currently have the capability to decrypt the image to check if the content is actually illegal before reporting it to the authorities without needing access to the physical device?

(Not trying to make a counter-argument to your comment. I genuinely don't get this part).


Hmm not sure what you mean. The hashes are shipped with iOS, and then (if parental controls are enabled) compared with the hashes computed against the unencrypted data on-device, and displays a warning to the user and their parents.

I'm not sure how the image is displayed on the parents' device - it could be sent from the child's device, or the image used to compute the hash that the child's image matched could be displayed.


No, they will host the hashes computed from those images.


Seems counter-productive. "Hey you're clearly miserable and not doing your job properly, so we're gonna make sure that you spend more time on the job being miserable while doing it improperly".


I don’t think most cops “are miserable”. They’re in that position because they enjoy being in power.


The officer at the polling place I worked Tuesday in Brownsville NYC went out and bought everyone cold water cause the community center was so hot. That was nice of her.

I think a lot of the NYPD are fairly average humans who probably don't really enjoy... tackling people or whatever.

Definitely hear a ton about the one's that do though. And there's some real pricks for sure as we saw during footage of the summer protests and police response.


It's a rule of thumb that roughly 10% of the NYPD receive 99% of the complaints and claims of excessive force. 90% of the NYPD is fine. The issue is that there is no meaningful oversight mechanism to correct the 9% that behave inappropriately sometimes, or the 1% that are serial offenders and are dangerous to the public. Other cops stay silent about it because there's nothing more dangerous to health and career than being a cop that rats out other cops. The civilian oversight board can't even look at records without the permission of the police.

Brief article about police complaints data:

https://www.theguardian.com/us-news/datablog/2020/aug/04/new...

Example of the ineffective oversight:

https://www.propublica.org/article/my-family-saw-a-police-ca...


> The officer at the polling place

I’m sorry, the what now?


there was an election in NYC recently, and police were at the locations where folks cast ballots.


> police were at the locations where folks cast ballots

Is that normal? That seems massively inappropriate to me.


Oh man! Wait till you go to Penn station and see military/police (the line is blurry) on patrol:

https://i.redd.it/v1qol3qqfoq41.jpg

https://www.alamy.com/stock-photo-jtf-empire-shield-members-...

My understanding re: polling is for "election security" which... was a big deal nationally for better or worse.


Yeah, I think it's fairly normal to have an officer outside of or at the entrance to a polling location. They're not actually in the room with poll watchers, etc., and certainly nowhere near the private voting booths.

It has never felt inappropriate to me – maybe because I typically vote at a public school, where it's normal to see a crossing guard or public safety officer outside.


Seeing cops in public schools is also weird to people outside the US.


Also metal detectors at schools. Very weird and unimaginable in Europe


It's not normal. In fact there was a police officer from Florida if I recall correctly who was reprimanded for voting in their uniform. It's considered potential voter intimidation to have a police officer standing around at a polling place.


Yes it is normal. They are there to enforce the regulations around no campaigning within a certain distance, and other voting related laws. Plenty of crazies showing up insisting on inspecting ballots and stuff, and poll workers delegate dealing with this to cops.


Is it not? I think police's duty at polling place is to maintain order, nobody shouts, breaks the line, becomes violent, break things, creates chaos. If sny objection, follows the procedure calmly n within law.

They are most of the time near entrance. They are never near anywhere you cast the votes.


Having some security at a polling place feels extremely appropriate. Any private security would run the risk of being partisan. The military would run the risk of having the ruling party order the military to do intimidation. Local police are the right choice.


But aren't police unions partisan in the US? Is a police officer standing outside a polling station representing their union's politics? Must feel so to some people.


Maybe, but at some point, every single human is partisan. Police officers aren't affiliated with a party, officially, so they are at least semi-neutral. And since local police live in the same community, they're incentivized to be civil to their neighbors. Who would want the scandal of doing something nefarious in their own town's polls?


They're standing there as the institution, not their personal opinions or unions. I think it's pretty benign.


At my polling place (an elementary school gymnasium) the officer was in the entrance/hallway on his phone the entire time. Probably some easy OT for a day of more or less basically being a hall monitor.


Part of being a police officer (perhaps a huge part) is simply being present and visible. This "presence" generally coincides with any large gathering of people.

It seems completely normal to me for a police officer to be there and to have not to have been needed. Sounds like a peaceful event.


Presumably-armed police loitering outside a democratic process even when there's nothing going wrong seems very strange to people outside the US.


I don't think it is helpful to use language like "loitering".

The police are present at high school football games, beaches during the summer, festivals, parades, large town meetings, etc. That isn't "loitering", that is just standard policing.

FWIW, the US has very decentralized policing, which is different than many other countries where the police force operates at the national level. Not sure if that is affecting the way people are thinking about this though.

If you told me the FBI was present at a voting location I would wonder what is going on. Local police officer, nope.


> The police are present at high school football games, beaches during the summer

These aren't normal for a western democracy, if you were wondering.


I can't speak for "western democracy", just my experience in the US.


Places where where the police are there to ensure people vote the right way should be concerned. The US (and the other countries where readers of this likely live) doesn't have a history of forcing people to vote "the right way", which in turn means nobody worry's about it. Those (perhaps the majority of people on earth!) who live in a place where how you vote isn't actually something you are sure is your personal choice have reason to be concerned.


I thought police unions in the US often explicitly declared support for particular candidates? That'd be unthinkable in most countries.


The unions do. However the police officers do not do anything about people voting against the union candidates. That is police officers may want you to vote some way, but they still defend your right to vote against them. (at least for now)


Most megalomaniacs I know aren't particularly happy people. I don't think the sudden outbursts of rage that we've come to know from cops are because they're zen inside.


I don't think so either - but the ones that are being punished aren't in that position because they're happy with or believe in department policies.


Most officers will be placed on paid leave while they are being investigated for whatever crime they’re accused of. So it’s more like they have their vacation time adjusted to reflect their mandatory vacation.


From an employer's perspective, this is fine because you don't want to lose more paid work hours without any return.

From the employee's perspective, it's a different story of course. The point of vacation is that you can recuperate from work stress and get some energy back, so that you stay healthy and can deliver good work. I doubt very much that this goal can be reached when the reason for your time off work is that you're under investigation. For instance, I don't expect most cops to fly to Vegas to party during such a time.


This is just actual 'unlimited vacation'. Instead of a being a doublespeak name for eliminating vacation time, they actually can take time off at will. Just find someone powerless to take your frustrations out on, sign the union form and pack for the beach.


This is an anecdote - plenty of firms are using Scala in their data engineering stacks and it's a great tool for the job.

While maybe not strictly necessary per se, it's a great way to get a foot in the door, and provides a great way to foster advanced type systems and functional programming (I personally find it to be a really fun language to write in to boot).


> it's a great tool for the job.

What job can this do that can't be done via sql. dealing with unstructured data?


> plenty of firms are using Scala in their data engineering stacks

Isn't that just a result of everyone being into Spark a few years ago?


Regardless of the source I think the main point folks are missing is that a lot of DE jobs will require you to know Scala so it's a good tool to have if you want to be a DE somewhere.

SQL is also an amazing tool and you should definitely learn if but there are a lot of DE jobs out there with Scala in the "Requirements" section of the job listing. Parts of the industry might be moving away from it, but if you're looking to make a jump into DE I think you're hamstringing yourself by avoiding Scala.


My youtube experience has consisted of about 50% political ads for a while now - would be interesting to see some insights into their total share of the pie.


The experience of ads on youtube must be misery. A YouTube sub is the best $15 you can spend.


Or an ad blocker...


They don't work, do they? I tried a few but nothing works. I'm on Chrome on Mac.


Unlock origin works for me, on chrome and firefox, Linux and windows.


You must live in a swing state. I get zero political ads in CA.


Some people not in swing states such as I are getting endless ads to donate to campaigns.


I've gotten quite a few political ads in the last few weeks. (CA with ad personalization turned off)


I'm in New Jersey which is pretty consistently and firmly blue. Hammered with ads from both sides.


You don't get ads asking for donation?

CA appears to be politicians' (from both parties) ATM.


Proposition 22 ads everywhere.


I just opened the YT app and a Joe Biden ad is literally the first thing I see at the top. I’m in CA.


And it seems the number of ads has increased a good deal. I tend to get a 2 ad block about every 4-6 minutes now.


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

Search: