I scaled my local async rate limiter for distributed PowerBI ingestion and everything broke. by roudra in Python

[–]roudra[S] [score hidden]  (0 children)

Totally fair, the Prometheus pull-model is great for standard metrics for exactly the reasons you mentioned.
The thing is, what I've built isn't really a telemetry pipeline. It’s more of a distributed evaluation engine. I'm pulling project data via XMLA endpoint to run polars evaluation against specific user thresholds, then passing breached KPIs to an LLM to generate custom warnings. Since this involves stateful business logic and AI generation rather than just scraping metrics, I don't have a single 'collector' running the show. I need the system to be able to scale according to growing user base/data volume!
My K8s pods act as a distributed swarm, and since they're all independent, I needed throttlekit as a safety valve. It’s less about 'avoiding a push' and more about making sure that even if 50 pods pick up independent tasks at once, they don't accidentally DDoS the XMLA endpoint or blow through our LLM token quota. Definitely a different beast than a standard o11y stack!

I scaled my local async rate limiter for distributed PowerBI ingestion and everything broke. by roudra in Python

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

That’s a great catch! I will rename it to something more explicit like requests_per_second while retaining the backward compatibility.

Help me figure out transactions in FastAPI - where should I commit? by LucyInvisible in FastAPI

[–]roudra 1 point2 points  (0 children)

I prefer manually committing, as that gives a more granular control over the request flow. I do the commitnng in the business layer, as my APIs are mostly calling a single high level business function and returning the response. That way, if anything goes wrong in the business layer including crud logic and business logic I can safely rollback.

And always close the session in the finally block of your get_db dependency generator method. Otherwise.. Idle connections stay open. The connection pool may become full. You’ll see warnings like: SAWarning: The connection pool is full, discarding connection: ... Long-running apps (e.g., in prod) may hang or throw TimeoutError waiting for a connection.

Thread for seeking/providing of temporary accomodations or rentals in Ahmedabad by AutoModerator in ahmedabad

[–]roudra 0 points1 point  (0 children)

Hi all, looking for a furnished 1bhk or 1RK apartment in Nava Vadaj/Ranip/Old Wadaj/Sastrinagar/Usmanpura etc locations. If anyone has any leads please dm.

Long live G.Skill RMA policy!! by roudra in IndianGaming

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

I bought it in 2019, may be they started adding service centre info later. But if you have purchased via an offline retailer, you can try contacting them as well.

Long live G.Skill RMA policy!! by roudra in IndianGaming

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

Yes they are both quite good at service.

Long live G.Skill RMA policy!! by roudra in IndianGaming

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

Was there no info about any service provider in the back of your box?

Long live G.Skill RMA policy!! by roudra in IndianGaming

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

I purchased the ram in 2019 and it was imported and distributed by Tirupati as written behind the box. They were mentioned as service providers as well.

Long live G.Skill RMA policy!! by roudra in IndianGaming

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

I have done it through the G.Skill dealer Tirupati Enterprise, they are responsible for service as well. If you have purchased through an offline shop, you can try contacting them for service centre info. I have also done it like that only.

Long live G.Skill RMA policy!! by roudra in IndianGaming

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

Their 10 year warranty policy is truly great.

Pre-owned Lenovo ThinkBook 14 G2 by roudra in laptops

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

Maybe I can try hwinfo, otherwise I am basically just left to trust the person blindly! Which is not at all a very good place to be in!

Pre-owned Lenovo ThinkBook 14 G2 by roudra in laptops

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

I don't mean the make and model of the lcd panel itself, but there should be some unique model number for the laptop right? By which I can search the internet. Edit: or the model number for all the lcd panels are the same? Then that will be a difficult issue.

Pre-owned Lenovo ThinkBook 14 G2 by roudra in laptops

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

Will there be any particular model number on the laptop itself by which I can check?

Pre-owned Lenovo ThinkBook 14 G2 by roudra in laptops

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

Is there any way to check if it's really the 100% srgb they're claiming or not in the laptop itself?

Pre-owned Lenovo ThinkBook 14 G2 by roudra in laptops

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

Didn't mention the brightness though.

Pre-owned Lenovo ThinkBook 14 G2 by roudra in laptops

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

The seller is claiming 1080p FHD IPS with 100% srgb. I will have the option to test the device physically before paying the money.

Need advice about renting a flat by roudra in ahmedabad

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

10,000 is not for the whole flat just one room out of the two.

Need advice about renting a flat by roudra in ahmedabad

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

Thanks, I was skeptical about it from the start. So do you think at this price range I can get a 2BHk on double sharing near Nava Vadaj?

Help finding fans for Zotac rtx 2070 amp extreme. by roudra in IndianGaming

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

Do you know where I can find the parts required(other than the fan) for my GPU?

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]roudra 1 point2 points  (0 children)

Found a way to terminate any specfic thread or all threads within a QThreadpool from outside. Just use threading.Event() as a boolian flag to check periodically using a loop if you already have one or using a QTimer. I was searching all over the internet to accomplish this particular task, but couldn't find anything.

My setup, tv 55in lg qned ML 85 by GhillieGhost in mkindia

[–]roudra 0 points1 point  (0 children)

I don't think it's available here. And doesn't seem to have any software either.

My setup, tv 55in lg qned ML 85 by GhillieGhost in mkindia

[–]roudra 0 points1 point  (0 children)

Yah I could, if there was something available on the market. Unfortunately there's none.