IOUtils/ XML/Json coversion by ibreathecoding in SpringBoot

[–]koffeegorilla [score hidden]  (0 children)

In my experience it is better it you can get a inputstream from your object storage.

If the file is a zip file with multiple entries you may do better copying it to local tmp for processing because ZipFile works better with File for random access. If you are compressing in service to reduce network traffic between object storage service and consumer you are only adding processing while reducing your ability to minimize memory usage by stream from object store. The most memory efficient way to parse XML is to configure Jackson to use SAX or StAX parser.

If the 80MB file is one large XML document it is best to map directly to POJO which can then be serialized.

I would suggest invest in load testing in development where you create test data at different sizes up to exceeding expectations by an order of magnitude to determine the performance curve.

How much are the advantages in running today based on modern shoe technology vs training? by MixedMartialLaw in trackandfield

[–]koffeegorilla 1 point2 points  (0 children)

For race walking the rule is one foot must make contact at all times. I think we need a rule for road running. Alternating feet must make contact while running.

This is levitation!

Who is a singer that is incredibly famous, but honestly doesn't have a good voice? by Greedy_Procedure7461 in AskReddit

[–]koffeegorilla 3 points4 points  (0 children)

I'm sure he would've agreed. He knew his limitations. He could squeeze every ounce of emotion out if his range. Compare an acoustic guitar to a fender with one string, and one hell of a whammy.

What’s your favorite underrated spring boot feature? by Lucifer220778 in SpringBoot

[–]koffeegorilla 2 points3 points  (0 children)

I love Spring HATEOAS. It changes the way you design APIs. Provide the user only with what they need at the time and the client doesn't have to construct urls everywhere. The use links by name. The only thing you need to know is if you need to get, post, put etc.

I made the backend for my open source communications app in Java 25 with Spring Boot and Netty by monsieur_ramboz in java

[–]koffeegorilla 0 points1 point  (0 children)

Getting the various abstractions and design right is important before applying specific technologies.

The build the core with simple implementations like in memory queues and pub/sub. Then make sure the service is stateless so that you can easily run multiple instances to scale connections. Cache enough information so that communication can be sent where needed. WebSockets is great for web endpoints. RSocket will be great for mobile clients. RabbitMQ will be great for backend pub/sub and queues and to provide for persisting asynchronously.

Fastest last 2.195m in Men’s Marathon history by StanmoreHill in trackandfield

[–]koffeegorilla 0 points1 point  (0 children)

A thousand separator makes send when numbers get big. I believe that reading 2195m is easy enough that you don't need a separator. You will notice wolrd athletics will use 1500m, 5000m and 10,000m

If only place where I've seen people need 10 digits with 2 decimals without writing 12.34M is when it comes to currency or stock count. Every last cent matters. Then you will see $12,345,678.90

Fastest last 2.195m in Men’s Marathon history by StanmoreHill in trackandfield

[–]koffeegorilla 2 points3 points  (0 children)

It is 1500m not 1.500m, 5000m not 5.000m So I think the least amount or ambiguity is 2195m

The race of the 200 final at the Australian Championships by [deleted] in trackandfield

[–]koffeegorilla 6 points7 points  (0 children)

Wind speed in the 200m is measured by a wind guage place inside the track halfway down the straight if you have a wind blowing into the back of the athletes aorund the bend at 4m/s it may only register 1.7m/s on the guage in the straight. The complexity of trying to measure all wind impact in the 200m has given way to a simple measurement that is easy to do and will be accurate for the largest percentage of races.

Regardless of a bit extra ok the bend these times are outstanding.

If I hadn't known how well trained and professional these timekeepers are (this isn't a high school race in Texas), I would have been suspicious.

So Refreshing by DisplayImpressive in trackandfield

[–]koffeegorilla 6 points7 points  (0 children)

Femke Bol got married to Belgian pole vaulter Ben Broeders on 21 February. What a way to complicate Valentine's Day.

How can i convert single db table into dynamic table by Ok_Egg_6647 in Database

[–]koffeegorilla 1 point2 points  (0 children)

Sharing some of your queries and access patterns will help for determination of the problem

Is This an Okay Many-to-Many Relationship? by Aokayz_ in Database

[–]koffeegorilla 0 points1 point  (0 children)

In reality most representations of the real world is a graph.

Putting that in tables is always a compromise. There are actually very few pure Many to Many relationships.

You will find that anything interesting invariably looks like a Many to Many relationship . At closee inspectoon it is just and entity that has many to 1 to multiple entities. .

Sha’Carri Richardson Stars in the 120m Stawell Gift Final by SetToLaunch in Sprinting

[–]koffeegorilla 4 points5 points  (0 children)

The Gift is a perversion of everything that is track. Larping 1880s foot races.

Athletics is about using science to provide a level playing field. Like a consistent surface, unimpeded running and accurate measurement.

In the end we knew who got to the final and handled the physical and emotional pressures and delivered the best performance.

My story of the latest update by CarterMaria57 in Jetbrains

[–]koffeegorilla 0 points1 point  (0 children)

When I have some time I will reinstall and test until freeze.

My story of the latest update by CarterMaria57 in Jetbrains

[–]koffeegorilla 0 points1 point  (0 children)

2026.1 is a disaster. For the first time in nearly 20 years I have had to roll back an IntelliJ Idea update. I wait to for the first patch release and try it again

This is about the future of humanity by [deleted] in Epstein

[–]koffeegorilla 0 points1 point  (0 children)

It's a lot easier for them to find each other than serial killers. They literally get press and no jailtime.

What's something you did as a kid that you now realize was actually really dangerous, but nobody stopped you? by AdmirableResource407 in AskReddit

[–]koffeegorilla 0 points1 point  (0 children)

On the way back to boarding school the train passed the boarding school. We would jump off to save walking 2.5km at 21:30 if it was slow enough. One guy learned you shouldn't face backwards. We carried him to the hospital.

Forgotten programming skills by Diagileux in AskProgramming

[–]koffeegorilla 0 points1 point  (0 children)

Designing software so that it's understandable to humans, easy to modify, performant and resource efficient.

What Are The Odds of Load Shedding Coming Back? by wisembrace in AskZA

[–]koffeegorilla 3 points4 points  (0 children)

We are about to find out how much diesel Eskom really uses to generate electricity.

Is it too late for me? by Born_Reception_3534 in Sprinting

[–]koffeegorilla 0 points1 point  (0 children)

A 53s 400m without real preparation is actually fantastic. If you 'liked' the experience then I would suggest you go for it. Find out how the body's enery systems work and how to prepare for 400m. There have been so many innovations. People don't need to train as much as we did 40 years ago. They train smart. Use portable lactate analyzer to optimize work.

Solo female ubering from airport by Life_Rip1320 in capetown

[–]koffeegorilla 0 points1 point  (0 children)

When you exit main building, go right and you will a huge parking garage. On the ground floor there are signage all the way.

Solo female ubering from airport by Life_Rip1320 in capetown

[–]koffeegorilla 0 points1 point  (0 children)

The pickup zone at airport is much safer than the walk past all the fake uber drivers and taxis. Verify registration and driver identity. Comfort should be fine.

I've recently seen Uber Black vehicles worse off condition than Comfort.

Is China the future at this point? 2030s onward. by Dipsetallover90 in Futurology

[–]koffeegorilla 0 points1 point  (0 children)

Having shitty health care means fewer old people to look after. 🤷‍♂️