Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
New subscribed feed!
We just launched an activity feed of users you subscribe to + recommended users!
Tap here to read

Feed
All
Post Types
- Rants
- Jokes/Memes
- Questions
- Collabs
- devRant
- Random
- Undefined
Cancel
All
-
Architecture for Java REST API going to build/port from existing NodeJS one.
So Spring Boot + *
Lots of concurrent requests and large MongoDB calls. Current APIs use like 4GB memory for each instance because they don't use stream/pipe the response. Hold all data in memory and then return it all at once to user.
And well we expect more load in the future, so want to do this the right way.
So my understanding since this morning, is there's the blocking? MongoClient, (find* returns List) and now a Reactive MongoClient which is very async and like JS promises. Based on Pub, Sub model.
But the downside of JS promises was callback hell.
So actually 2 questions.
1. For each request, the db call done using the same MongoClient/db connection such that if there are 2 requests one would block the other?
2. Reactive Mongo would be non-blocking by design so would be better to support streamed responses?8 -
Finding a memory leak is the very definition of the journey where you start with "I hate everything" and end up with "I am GOD"1
-
Not Dev
My passport appointment date was 26/03/2021 and i saw only 26.
Travelled 100 kms for this mistake yesterday. 😭😭4 -
Hey guys passport authentication seems so cool in node, its a little bit hard to learn though...i will work on it today and try to create a demo project on it :) , traversy media has this great tutorial on it2
-
I suddenly have no regrets leaving LastPass when they were bought out and started to go to shit.
Lastpass now contains several trackers.
https://theregister.com/2021/02/...8 -
If 13 hour days on Friday are the norm, I'm going to have to go back to the drawing board. Fuck that.9
-
Is it gay to like Ed Sheerans music?
He’s one of the few new people with actual talent in my opinion.
Many people say men listening to Lana del Rey are gay so I don’t give a shit anyway.
But I’m still wondering.
How many of the guys without a life (like me) here listen to and actually enjoy listening to Ed Sheraan?
Gaaaaaaaaalway Girl, nananannananannaa gaaaaaalway Girl, nananannananananananananna
That shits is stuck in my head now..19 -
Monday marks the beginning of a new month. In the new month, I turn a year older. As I steer further and further away from "youthfulness", I intend on starting a new chapter in my life.
Sunday 28th Feb is the last day I put any investment towards my "white-collar" professional career. Beginning March 1st, all my energy is going towards my entrepreneurial career instead.
This means that instead of learning that Huawei HCIA networking certification that I hate, I'm going to continue learning Docker (then Kubernetes) which I intend to use on my first product & the many more to come. Instead of studying the horrifyingly boring Data Science course, I'm instead going to put my energy behind understanding GCP & AWS, with the hopes of eventually getting certified.
Basically, I'm going to put all my energy into learning technologies that interest me AND have the potential to help me deliver on my entrepreneurial journey faster & better, rather than studying certifications which everyone believe will make me more employable.
Unfortunately, there aren't that many jobs going around & I'm currently under a year long internship with extremely smart graduates (a valedictorian included). The joke is we're earning $250 a month and have zero hope of getting employed anytime soon. I'm tired of going down this path.
I'm glad I got my degree in CS, now onto creating job opportunities for my fellow peers!
PS: Expect rants about my entrepreneurship challenges, and celebrations about my entrepreneurship wins!2 -
CLEARLY! ...
I'm drunk.
//motherfucking populate the mailings table yo
Route::get('fuckman', function () {
$statuses = array('queued', 'sent', 'failure');
$statusKey = rand(0,2);
$mailings=App\Models\Mailing::all();
foreach($mailings as $mailing){
$mailing->status=$statuses[$statusKey];
$mailing->save();
}
return 'fuckyou';
}); -
I finally created a kotlin android app for a simple project idea, just personal usage. Beginner level. Quite a good and bad experience.
Functionality is done, just sucks with UI, as I'm not proficient enough with styling on android.
The result is a predefined purple action bar at the top, an almost white text section right below it with *very* light-grey textview descriptions (you can guess how visible they are on my phone...). Center is a big recyclerview, which in android studio has white background with dark grey text items, yet is black on my phone with white text items. At the bottom 3 text inputs and a centered purple "add" button.
... It's a mess as long as you don't know how to design and style on android studio.2 -
You know what DARK MODE is offensive. From now on it should be called Night mode.
Twitter, please shitstorm the hell out of this plzkthnx23 -
- Go to sleep early
- Get up at 5-6
- Drink quality coffee
- Work at your desk not from the bed or couch
- Don't start new projects until the last one is done
- Have a good and healthy diet
- Excercise frequently
Essentially don't be like me... Be like anyone else but me and you'll do fine...14 -
I feel like a sailor waiting for an upcoming voyage. Restless, yet hopeful, yet a bit anxious about what will happen.
Also, am unemployed now. Lol. Feels awesome... Except for the financial part. ¯\_(ツ)_/¯
Also, am making way too many philosophical decisions as I stand at the edge of an important phase of my life. And rediscovering a part of my personality I forgot existed.
Anyways, hopefully future brings more robots, more AI, more fantastic things to build, and more money and success.2 -
Was struggling to find motivation to start coding again. So I decided to get back to college and finish what I started. I'm just done with my first semester as top in class.
Now, I just can't stop. I'm always craving for more projects. My brain even stopped craving for games. And I've always been a big gamer.
Do I need help? Is it unhealthy?4 -
Office Politics
I suppose I become a victim of office politics. I was working on new project and one more new project having e-commerce aspects was in queue. But my ex-manager went to the boss and asked him to assign me to her :( No more chance to work on e-commerce :( again have to work some geo-location services. Feel like fu*ked up ..2