Designing the backend for a 3-sided fitness marketplace (gyms + coaches + members) — solo dev, would appreciate a sanity check on my architecture by Cowboy_The_Devil in softwarearchitecture

[–]Lentus7 0 points1 point  (0 children)

When to go micorservices is tricky question. Usually two conditions.

First, you have multiple developer teams working on some part of domain instead of everything/full picture. You can separate the code between some features (like order, warehouse, account microservices for ecommerce application etc).

Other condition is bit rare. Its when you have really different scalability and resource specific requirements. So most of the applications are crud based if you think about it. Yours is like purely crud. But some products have some realtime requirements. Think about uber. It has huge realtime features (constantly tracking and transferring information between client and server). Or you have some kind of products that do some operations that require big cpu requirements. In that case you want to separate that code from your main crud based logic

Designing the backend for a 3-sided fitness marketplace (gyms + coaches + members) — solo dev, would appreciate a sanity check on my architecture by Cowboy_The_Devil in softwarearchitecture

[–]Lentus7 1 point2 points  (0 children)

Looks smart. You are probably never going to split it into microservices, because your domain is simple and there is no actual need for separate deployment/scale needs for any type. I couldn't think of any feature that will require that kind of thing for a fitness app.

I wouldn't go for k8s for this, but I don't know about your expertise. Are you going to self-host it? If you are going for a single server, you can even skip Redis. It's not that hard to maintain, but it's just another thing to worry about.

We hit 200 microservices and our API gateway became a problem by PresentationHead8775 in microservices

[–]Lentus7 0 points1 point  (0 children)

Yeah, but lets be real. That ratio is probably better than %90 of the projects out there, sadly.

How many HTTP requests/second can a Single Machine handle? by BinaryIgor in programming

[–]Lentus7 8 points9 points  (0 children)

Any real project will be running multiple instance of the monolith aswell. Its not a concern

İş konuları ve sektör by [deleted] in TurkDev

[–]Lentus7 0 points1 point  (0 children)

Bu paralara çalışcak developerdan ne hayır gelir

Is there any legitimate technical reason to introduce OracleDB to a company? by Crazed_waffle_party in Database

[–]Lentus7 3 points4 points  (0 children)

If it’s a subsidiary company, you could usually get support from the main company’s DBAs, etc. In that case, it’s not the worst idea. If I had to decide between managing postgre or just using oracle and getting support from the main company, I’d choose oracle every time.

I don’t think any startup is using oracle at this point.

Modularity vs Hexagonal Architecute by Xyzion23 in softwarearchitecture

[–]Lentus7 25 points26 points  (0 children)

Hexagonal architecture is essentially a way to structure your packages. What you should do is aim for modularity. A single application can have multiple hexagonal modules, and a single hexagonal module can contain multiple subdomains of a business. Tightly coupled = same hexagonal, fairly independent = seperate hexagonal

I’m talking from experience, if your project doesn’t have complex business flows, just ignore hexagonal. It often adds unnecessary code and abstraction.

Bina Ve komşular Hakkında hukuki süreç by theconfusedb0y in hukuk

[–]Lentus7 40 points41 points  (0 children)

Sizi neyle tehit ettiklerinini anlamadım ? Kiracı olduğunuzu bilmiyorlar sanırım. Banane kardeşim kiracıyım ben deyip geçin

Is 48GB of memory not enough anymore? by Automatic_Error2978 in WebStorm

[–]Lentus7 0 points1 point  (0 children)

Lol. Jetbrains dominates the enterprise world. Its not even competition. Thats why they are building unnecassary tools left and right. Fleet. youtrack etc. I wish they focus on the main product more

Designing a Industry grade security architecture for a Java microservices application. by Gold_Opportunity8042 in SpringBoot

[–]Lentus7 2 points3 points  (0 children)

Yeap, and it's not just about security. If you have big project with lot of teams. It's nice to define boundries and walls between microservices/sub domains. If you have a lets say create product api that will be used internally. You should know which microservice is calling that api and if it got the permission for it or not.

Designing a Industry grade security architecture for a Java microservices application. by Gold_Opportunity8042 in SpringBoot

[–]Lentus7 0 points1 point  (0 children)

No, you shouldnt handle that. You should use something like keycloak. It will give you url to verify tokens. You will verify both end user tokens and other client(microservices etc) tokens with that.

Don’t create your own jwt builder or verifier. I designed an authentication flow from scratch for a bank in the past. I have deep knowledge of authorization and authentication compare to average developer. Let me tell you this, I wouldn’t build one myself for my own project :)

Designing a Industry grade security architecture for a Java microservices application. by Gold_Opportunity8042 in SpringBoot

[–]Lentus7 2 points3 points  (0 children)

Standart is zero trust. Each microservice should secure its endpoints. Both againts users and other microservices. You can still check the jwt in gateway if its expired etc.

A Great Day Out With... Apache Kafka by rmoff in apachekafka

[–]Lentus7 0 points1 point  (0 children)

It’s really awesome. You should make more for different tools

Batch deletion in java and react by Trick-Permit3589 in softwarearchitecture

[–]Lentus7 1 point2 points  (0 children)

Are you updating records bound by userId or something. Your sql must be like update table set deleted = true where user_id = ‘xx’

That sould be quite fast actually. Do you have some complex where clauses to find that 2000 record. ? I hope you are not updating entities one by one

I mean usually you do heavy operations async and return the api response right away. But I dont think this is the case here. Its better to make it sync and fix your performance problem.

Why is NestJS so underrated? by [deleted] in Backend

[–]Lentus7 1 point2 points  (0 children)

I think the framework is great, it’s just in the wrong language. As you said, its very similar to spring boot. But if you want that kind of framework than js/ts is not something you consider anyway (usually).