Giter VIP home page Giter VIP logo

Comments (4)

jon-batscha avatar jon-batscha commented on August 18, 2024 1

Hi Hagen,

Thanks for reaching out, these are great suggestions!

I sent this over to our product team to add this to our roadmap, though no firm timeline yet (I’ll keep you posted as I get updates).

Regarding your first point around bulk endpoints: until we support this functionality, I recommend trying out python's native pooling functionality to speed up requests (if you haven’t already).

More details here, but in short:

API requests to update_profile take 0.5 seconds round trip time. That means that if you send requests in series, you will only be able to achieve an effective rate of 120/minute. However, our rate limit for that endpoint is actually 700/minute steady. Because of this, if you parallelize your requests, you should be able to increase the request rate by a factor of ~6.

Hopefully this helps in the interim while we work on supporting the features you raised. And thanks again for the thoughtful input, we super appreciate it.

Cheers!
Jon

from klaviyo-api-python.

h4gen avatar h4gen commented on August 18, 2024

Hi @jon-batscha πŸ‘‹,

Thank you for your elaborate response and the feedback πŸ‘ We actually tried using pooling via async_req=True with the library and on our own, but our measurements did not really show a significant uplift in request speed. We were never even close to hitting the 700rpm. In the end we decided that the uplift in speed did not really justify the overhead of handling the async part (i.e. waiting and checking if pool workers finished correctly).

We actually switched back this part to the legacy API and keep the fingers crossed that this is supported until the sunset of the API 🀞

Thank you,
Hagen

from klaviyo-api-python.

odedva avatar odedva commented on August 18, 2024

hi there πŸ˜„
we are also using the profile update api, and the current rate limit is really low (up to 700/minute) AND high resource consumer ( api call per profile update)...it takes a lot of time if you need to update a large list\segment of users with some custom tag.
We also would be happy if we can make a bulk profiles update

from klaviyo-api-python.

jon-batscha avatar jon-batscha commented on August 18, 2024

Hey,

Just wanted to let you all know that we now support append, unappend, and unset for update_profile: https://developers.klaviyo.com/en/docs/changelog_#improved-endpoints

We haven't yet implemented bulk setting of user properties, but will keep you posted once that's available.

Cheers,
Jon

from klaviyo-api-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.