Giter Club home page Giter Club logo

Comments (4)

everdaniel avatar everdaniel commented on July 25, 2024

IMHO, I think these kind of things needs to be done in the background, if Intercom has a hiccup or there are some network issues reaching Intercom, your app might go down (I guess it depends on how you implement it).

What I'm doing is I put these in a queue and process them in the background.

Just my 2 cents :)

from intercom-php.

drewbroadley avatar drewbroadley commented on July 25, 2024

@everdaniel I don't disagree with that, because what I'm raising is not the workflow problem you have explained.

The issue is that it's a large overhead to initiate new requests when you're utilising a high latency connection to Intercom's API.

By doing bulk, it will allow for streaming behind a single request (albeit chunked) thus reducing the repeated handshaking requirement.

This problem is particularly compounded over SSL connections.

from intercom-php.

stephenwf avatar stephenwf commented on July 25, 2024

If you are having problems with load times, unless you are using the Intercom to persist your user data (unlikely?) I would recommend closing your connection to the client and then proceeding with the API call. To avoid causing multiple transactions chuck a lock into the session to tell subsequent connections to wait.

Regarding reducing latency, it would be nice to post the tags along with the user on creation.

from intercom-php.

bobjflong avatar bobjflong commented on July 25, 2024

We have no plans right now to add new bulk endpoints beyond what we currently offer: https://doc.intercom.io/api/#bulk-user-creation

Generally we recommend that Intercom actions are done async as suggested by @everdaniel

from intercom-php.

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.