In my implementation of the nationbuilder-rb gem, we see relatively frequent (at least once a day, normally) instances in which a connection seems to take forever to create. There's currently no native option that I can see to set a timeout on how long it should take for NationBuilder's endpoints to respond - this would be useful so as to ensure a good UX.
Note "take forever" here means "causing HTTP requests to fail on Heroku because they time out" (over 3s to complete), and New Relic indicates this is pretty much entirely down to the NationBuilder connection - the app server only takes roughly 100ms.
In my implementation of the nationbuilder-rb gem, we see relatively frequent (at least once a day, normally) instances in which a connection seems to take forever to create. There's currently no native option that I can see to set a timeout on how long it should take for NationBuilder's endpoints to respond - this would be useful so as to ensure a good UX.
Note "take forever" here means "causing HTTP requests to fail on Heroku because they time out" (over 3s to complete), and New Relic indicates this is pretty much entirely down to the NationBuilder connection - the app server only takes roughly 100ms.