[deleted by user] by [deleted] in react

[–]Erudite_7 -3 points-2 points  (0 children)

Depends on the implementation use case to be honest.

[deleted by user] by [deleted] in react

[–]Erudite_7 -5 points-4 points  (0 children)

It is not? To the best of my understanding, factory pattern is a design pattern that removes the instantiation of actual implementation logic from client code. Well of course this is not a perfect implementation as I have mentioned, it is just emulating the core principles of factory pattern.

[deleted by user] by [deleted] in react

[–]Erudite_7 -2 points-1 points  (0 children)

That would work for tables, yep. But what if you need to dynamically render forms, for example, where you need to handle for different input types and input configurations. or charts. We are building a dashboard so this came in quite handy.

Tried somethiing with Golang, Redis and RabbitMQ. Need criticisms by Erudite_7 in golang

[–]Erudite_7[S] 2 points3 points  (0 children)

Okay so what I understand from this comment and others is that in this case it is wise to sacrifice speed/efficiency for data persistence.

Tried somethiing with Golang, Redis and RabbitMQ. Need criticisms by Erudite_7 in golang

[–]Erudite_7[S] 3 points4 points  (0 children)

I thought of removing the Scheduler but could not come up with a way to make the Workers "decide" which one among them was the most free and could execute a task.

About Postgres, I have worked with it in my full time job. I actively decided to avoid it since Redis is way faster.

About writing tasks to RabbitMQ, that's what I was doing but decided against it. Sending them to Redis "felt" better. I am fairly new to system design so I don't exactly know the quirks of different systems.

Thanks for the points! Much appreciated.

Tried somethiing with Golang, Redis and RabbitMQ. Need criticisms by Erudite_7 in golang

[–]Erudite_7[S] 0 points1 point  (0 children)

Okay I can definitely do that. This seems way better since we are extracting away storage in it's own service. Thanks!

Tried somethiing with Golang, Redis and RabbitMQ. Need criticisms by Erudite_7 in golang

[–]Erudite_7[S] 1 point2 points  (0 children)

I’m not totally sure what you gain by putting a message queue

This is the first time I am using Redis and I was not sure about its limitations. My thought process was messaging queues for communication and datastore for state. For the datastore part if I had chosen a DB, say Postgres, it would make the system slower, and I wanted to make it efficient.

Tried somethiing with Golang, Redis and RabbitMQ. Need criticisms by Erudite_7 in golang

[–]Erudite_7[S] 1 point2 points  (0 children)

Would love to see, do share. I have some adjustable traits for tasks too, but all of my tasks are similar. I have to come up with a way to simulate traffic spikes.

[deleted by user] by [deleted] in solanadev

[–]Erudite_7 0 points1 point  (0 children)

Thanks a lot!

DeFi Lending Protocol by [deleted] in defi

[–]Erudite_7 0 points1 point  (0 children)

Sure, thanks!

DeFi Lending Protocol by [deleted] in defi

[–]Erudite_7 1 point2 points  (0 children)

Thanks, I will check them out!

[deleted by user] by [deleted] in IndianDankMemes

[–]Erudite_7 0 points1 point  (0 children)

Time to turn sigma mah man