Twilio Functions - Memory and Database -
i using twilio function has array of phone numbers.
i able store these phone numbers in 3rd party cloud database can edit our crm.
then i'd write twilio function check database , update array in twilio functions latest data.
alternatively if there other way first twilio function latest data database , store in memory great. i'd avoid checking database every request if possible in order make function fast possible.
any appreciated!
twilio developer evangelist here.
currently, functions in public beta, there no api functions. cannot update functions on environment variables functions yet.
also, due beta limitations, unable install node modules, such database drivers, accessing remote data stores not straightforward.
you can, within function, make http requests though. so, if crm return list of numbers in response http request, fetch them way.
in terms of storing data in memory functions, not relied upon. functions short lived processes memory volatile.
in case, since use list of numbers, load list in first call function , pass numbers through url remaining calls, need make request first time.
let me know if helps @ all.
Comments
Post a Comment