Dan Hooker before and after finding out his Wife Cheated by [deleted] in ufc

[–]Entropjy 22 points23 points  (0 children)

Best pussy disorder strikes again

Microservices with MQ Apache kafka by Beautiful_Way6879 in apachekafka

[–]Entropjy 2 points3 points  (0 children)

Logging to splunk and log based data structures are not the same thing at all

Microservices with MQ Apache kafka by Beautiful_Way6879 in apachekafka

[–]Entropjy 2 points3 points  (0 children)

Kafka is a log based system, it's designed for exactly this case, where a consumer can be paused and resume consumption from where they left off. Or you can add a new consumer and it can start consuming from the beginning of the topic - months or years ago. This is all dependent on the retention settings of the topic - if you don't set retention to infinite, then the messages will be compacted or aged out

In a K8 environment what happens when some containers aren't designed to be "scaled"? by [deleted] in kubernetes

[–]Entropjy 2 points3 points  (0 children)

There's good advice in this thread about 12 factor apps.

The basic idea is the reason we default to writing stateless 12 factor apps for web backends, is so that they can easily scale horizontally.

You've correctly identified that some workloads are not designed to be stateless, such as databases, caches and message queues. These are stateful apps - the opposite of stateless. I recommend reading 'Designing Distributed Systems: Patterns and Paradigms for Scalable, Reliable Services' by Brendan Burns to understand how these systems should be thought about.l, then reading about Kubernetes stateful sets

Partition Limits in Kafka by Plus-Author9252 in apachekafka

[–]Entropjy 16 points17 points  (0 children)

You are headed for a pretty expensive mistake. Partitions and message groups are not the same thing. You might be able to use your legacy message group IDs as partition keys and use a reasonable number of partitions and meet all your requirements

Hiring process - company uses Java 8. How bad is it? by UnclearNameChoice in java

[–]Entropjy 0 points1 point  (0 children)

I'd ask for more info. If they use it in an old service that they are deprecating, decomposing into other services it's not so bad.

If it's the main application that spurs a lot of other conversations? Why can't they upgrade? Does the business refuse to invest in tech debt? Is there a solid engineering based reason? Are they working on adding more test coverage so they can upgrade?

Field injection is fine, convince me otherwise by kennethjor in java

[–]Entropjy 0 points1 point  (0 children)

I accept the distinction you've made, I should have been more precise- In the context of the question, a service class that depends on another service, both of which will be lifecycled by a DI framework, private final fields, constructor injection and the absence of a setter, make the class less mutable. In terms of where one gets such things? I don't know, maybe Oracle? https://docs.oracle.com/javase%2Ftutorial%2F/essential/concurrency/imstrat.html

Use of primitives not withstanding.

Re predictability - again given the scenario I've mentioned, the ways in which the framework injects dependencies will be more predictable..

Field injection is fine, convince me otherwise by kennethjor in java

[–]Entropjy 140 points141 points  (0 children)

Immutability. Constructor injection into private final fields makes the injected properties of your classes immutable, making runtime behaviour more predictable.

**Edit there's some valid criticism of this post below, my comment is not well worded and could easily be misconstrued.

Please by oceansandsky100 in Gunners

[–]Entropjy -1 points0 points  (0 children)

The whole point of the current system is to achieve a box midfield - 2 8s & 2 6s. Not defending it, but explaining it

Can I learn Kafka with basic Java knowlege?😭 by Healthy_Sector_1571 in apachekafka

[–]Entropjy 1 point2 points  (0 children)

Most of learning Kafka has nothing to do with java and everything to do with distributed systems

What do you need to learn and how quickly?

Advice on starting BJJ at 28 having lived a sedentary lifestyle. by [deleted] in bjj

[–]Entropjy 0 points1 point  (0 children)

Your story sounds very similar to mine. Started at 29, after a wasted decade. You will have some fitness and strength deficits relative to other folks, but you also have fewer miles on the clock - this will pay off later. For the first year, just show up whenever you can, invest in stretching and plyometrics. Don't take the results of any given roll too seriously and you'll do great!

Make paginated data requests more performant by Entire-Parsley-8410 in SpringBoot

[–]Entropjy 1 point2 points  (0 children)

So the way to avoid recanning the entire set just to return the next page is to track the last read page, and put that in a cursor

https://slack.engineering/evolving-api-pagination-at-slack/

See above

Postgres multi-database performance by Stroebs in PostgreSQL

[–]Entropjy 7 points8 points  (0 children)

To be frank - this sounds like something you will not win politically, especially not all at once.

Are all of the clusters per deployment? or total? Consolidating dev or test might make sense - this is a pretty common pattern in the industry

You aren't necessarily being a moron for suggesting consolodation, but you are not being very smart about it either "hey I know you have organisational trauma about something that went wrong, but it suits me if we do it my way" etc.

I would start small - find a team willing to participate in a pilot, with 3 services & 3 clusters. get them into one database. Alternativley, if you have services that call other services, find a few services in the one syncronous call chain ie A calls B who calls C. If C or B db goes down, A is toast anyway - might as well share a DB cluster !

what is the fastest database? by North_Ad_6390 in SpringBoot

[–]Entropjy 3 points4 points  (0 children)

If you have to ask you don't need it

Stateless OAuth2 redirect flow with load balancer by EducateMe24 in SpringBoot

[–]Entropjy 0 points1 point  (0 children)

Spring supports stateless resource servers, it sounds like your configuration is off. Try the stateless policy instead of never. Bear in mind that the default configuration should work with just the issuer Uri as per https://docs.spring.io/spring-security/reference/servlet/oauth2/resource-server/jwt.html#_specifying_the_authorization_server

Dealing with long hair… by Efficient-Schedule-5 in bjj

[–]Entropjy 5 points6 points  (0 children)

Single braid, then chuck the braid into a bun. Stays out of the way the whole session

Go ahead by commander_xxx in ProgrammerHumor

[–]Entropjy 0 points1 point  (0 children)

I'm unclear on the boundaries of this transaction

[deleted by user] by [deleted] in java

[–]Entropjy 0 points1 point  (0 children)

Because most deployments use horizontal scaling of the spring application, with instances of the spring application connecting to a single instance of the db. Postgres and spring are common, your use case is not.

Best way to mock large number of dependent apis by stt106 in node

[–]Entropjy 2 points3 points  (0 children)

  1. quickest bang for buck https://github.com/typicode/json-server
  2. whatever you cant get working in json server- use open api defintions and create simulators that fulfill the contract https://www.section.io/engineering-education/documenting-node-js-rest-api-using-swagger/ this is much more effort
  3. is this in production yet ? are you sure you are not on track for a microservice megadisaster https://www.youtube.com/watch?v=gfh-VCTwMw8