TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Twilio Functions – Public Beta

267 pointsby tcsfalmost 8 years ago

15 comments

reviconalmost 8 years ago
It&#x27;s definitely using AWS Lamba, I spun up a trial account and texted myself the output of JSON.stringify(process.env)...<p>Edit: adding linebreaks...<p>2nd edit: Realized there were AWS access tokens in there. It&#x27;s probably not a good idea for those to be exposed to the environment they&#x27;re running this user generated code in. They should probably be wrapping these in vm.runInNewContext()<p><pre><code> { &quot;PATH&quot;:&quot;&#x2F;var&#x2F;lang&#x2F;bin:&#x2F;usr&#x2F;local&#x2F;bin:&#x2F;usr&#x2F;bin&#x2F;:&#x2F;bin&quot;, &quot;LANG&quot;:&quot;en_US.UTF-8&quot;, &quot;TZ&quot;:&quot;:&#x2F;etc&#x2F;localtime&quot;, &quot;LD_LIBRARY_PATH&quot;:&quot;&#x2F;var&#x2F;lang&#x2F;lib:&#x2F;lib64:&#x2F;usr&#x2F;lib64:&#x2F;var&#x2F;runtime:&#x2F;var&#x2F;runtime&#x2F;lib:&#x2F;var&#x2F;task:&#x2F;var&#x2F;task&#x2F;lib&quot;, &quot;LAMBDA_TASK_ROOT&quot;:&quot;&#x2F;var&#x2F;task&quot;, &quot;LAMBDA_RUNTIME_DIR&quot;:&quot;&#x2F;var&#x2F;runtime&quot;, &quot;AWS_REGION&quot;:&quot;us-east-1&quot;, &quot;AWS_DEFAULT_REGION&quot;:&quot;us-east-1&quot;, &quot;AWS_LAMBDA_LOG_GROUP_NAME&quot;:&quot;&#x2F;aws&#x2F;lambda&#x2F;ZDfb2ab7cd7ac1734d9a1a06a018a1c522&quot;, &quot;AWS_LAMBDA_LOG_STREAM_NAME&quot;:&quot;2017&#x2F;05&#x2F;25&#x2F;[$LATEST]2d7b70d5a6914e3980f081ba96c9d4ab&quot;, &quot;AWS_LAMBDA_FUNCTION_NAME&quot;:&quot;ZDfb2ab7cd7ac1734d9a1a06a018a1c522&quot;, &quot;AWS_LAMBDA_FUNCTION_MEMORY_SIZE&quot;:&quot;512&quot;, &quot;AWS_LAMBDA_FUNCTION_VERSION&quot;:&quot;$LATEST&quot;, &quot;_AWS_XRAY_DAEMON_ADDRESS&quot;:&quot;169.254.79.2&quot;, &quot;_AWS_XRAY_DAEMON_PORT&quot;:&quot;2000&quot;, &quot;AWS_XRAY_DAEMON_ADDRESS&quot;:&quot;169.254.79.2:2000&quot;, &quot;AWS_XRAY_CONTEXT_MISSING&quot;:&quot;LOG_ERROR&quot;, &quot;_X_AMZN_TRACE_ID&quot;:&quot;Root=1-59274f44-71756c3273bfaf4895cd5610;Parent=4126596e259f5d9f;Sampled=0&quot;, &quot;AWS_EXECUTION_ENV&quot;:&quot;AWS_Lambda_nodejs6.10&quot;, &quot;_HANDLER&quot;:&quot;enigma.handler&quot;, &quot;NODE_PATH&quot;:&quot;&#x2F;var&#x2F;runtime:&#x2F;var&#x2F;task:&#x2F;var&#x2F;runtime&#x2F;node_modules&quot;, &quot;AWS_ACCESS_KEY_ID&quot;:&quot;REMOVINGTHIS&quot;, &quot;AWS_SECRET_ACCESS_KEY&quot;:&quot;ALSOREMOVINGTHIS&quot;, &quot;AWS_SESSION_TOKEN&quot;:&quot;REMOVINGTHISTOO&quot; }</code></pre>
评论 #14420850 未加载
评论 #14420674 未加载
评论 #14420841 未加载
评论 #14422534 未加载
keithwhoralmost 8 years ago
Awesome play by Twilio. We&#x27;ve been working on StdLib [1] and an open specification for FaaS execution [2] for a while now, and demos with Twilio (sending text messages after automatically validating parameters, hooking into other functions in our ecosystem) have really helped developers grok what&#x27;s possible. (We have a built-in SMS utility that actually uses Twilio behind the scenes [3]).<p>Happy to see we&#x27;ve come to the same conclusions about utility independently :).<p>[1] <a href="https:&#x2F;&#x2F;stdlib.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;stdlib.com&#x2F;</a><p>[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;faaslang&#x2F;faaslang&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;faaslang&#x2F;faaslang&#x2F;</a><p>[3] <a href="https:&#x2F;&#x2F;stdlib.com&#x2F;utils&#x2F;sms" rel="nofollow">https:&#x2F;&#x2F;stdlib.com&#x2F;utils&#x2F;sms</a>
评论 #14420637 未加载
rockmeamedeealmost 8 years ago
Interesting. Thinking out loud here, are Functions a new opening for Saas businesses? (tldr no).<p>If you have a big enough user base&#x2F;set of use cases, the next step after opening an API to your service might be adding a Baas&#x2F;Faas, so people with small use cases or prototypes can get started easily without using a server.<p>But it&#x27;s not like Linkedin or Zenefits users would get more value out of &quot;Linkedin Functions&quot;. It probably makes more sense if you can &quot;eat&quot; what would have been a separate (micro)service.<p>The one thing I don&#x27;t see though, is if somebody is sold enough on Faas, why would they use your siloed Twilio Faas instead of AWS Lambda&#x2F;whatever where you can interact with Twilio _and_ eg Shopify, Instagram, other APIs...<p>Maybe then an interesting idea for the big FaaS providers duking it out for market share right now might be an ability for SaaS providers to build &quot;$YOUR_SAAS Functions&quot; on top of their offering. The end-user would see Lambda&#x2F;Function&#x2F;whatever templates pre-filled with the right API calls an a UI for choosing the different API-related triggers. This could be like the AWS marketplace, but for Faas.<p>So I guess the answer to my clickbait-ey question at the top is mostly likely no, but maybe, let&#x27;s see it play out. It definitely feels like a good way to sell more API usage.
评论 #14420542 未加载
rsyncalmost 8 years ago
I am a (happy) twilio customer and I do not understand this:<p>&quot;Today, we’re excited to announce Twilio Functions, a serverless environment to build and run Twilio applications so you can get to production faster.&quot;<p>I did just that ... I signed up for twilio, wrote a simple twiML[1] inside their web editor, and attached it to a phone number.<p>No servers were involved (I am not sure how I <i>could</i> involve a server) and I &quot;got to production&quot; very fast.<p>What would I do differently now ?<p>[1] &quot;Ring Forever&quot;
评论 #14421942 未加载
bryanhalmost 8 years ago
This is very similar to what we&#x27;ve done to bootstrap the Zapier CLI and developer platform -- especially relative to repurposing AWS Lambda.<p>Wrote a bit of behind the scenes just the other day <a href="https:&#x2F;&#x2F;zapier.com&#x2F;engineering&#x2F;behind-the-cli&#x2F;" rel="nofollow">https:&#x2F;&#x2F;zapier.com&#x2F;engineering&#x2F;behind-the-cli&#x2F;</a> if this sort of stuff tickles your fancy.
foolfoolzalmost 8 years ago
good amount of comments here missing how hard it is for &quot;normal&quot; people to use twilio. the article is clear: twilio&#x27;s many interface to your code is a callback URL. think about what it takes to have a callback URL you can input to the twilio website.<p>could they really set up an AWS account, lambda function, IAM role, API gateway, with cloud watch logs? ive done this in AWS. you have to use 5+ AWS services that have funny names and look nothing alike, and make them all work together.<p>or lets say you wanted to buy a domain, hosting for it, and put your code on there for twilio to hit with a callback URL. thats hard too.<p>if you are going to do either of the 2 approaches above, how many hours are you going to spend getting the callback URL foundation set up (and working) before you even get to use a twilio product?
评论 #14420748 未加载
评论 #14420448 未加载
CJKinnialmost 8 years ago
I&#x27;ve loved being able to hack away on projects with Twilio for a while now. They&#x27;re relatively easy to get started with, and this is going to make it even easier. 10,000 invocations free, with subsequent invocations priced at 10,000&#x2F;$1 seems like a great model. No idea about how this scales financially, compared to other similar services. But as someone making relatively limited use tools, most without a business model, their pricing certainly keeps me feeling great about using them.
评论 #14420130 未加载
评论 #14422501 未加载
hacknatalmost 8 years ago
I was already doing this with their API on Lambda. If anybody is interested: <a href="https:&#x2F;&#x2F;github.com&#x2F;nathanjsweet&#x2F;narthan" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nathanjsweet&#x2F;narthan</a><p>Good on them for integrating it.
fpgamineralmost 8 years ago
Is there some way to create an SMS based service using Twilio, and charge users? Like, the user gets charged on their phone bill and I, the service owner, get paid by Twilio or something.<p>Or is that just not a thing and it has to be done OOB?
评论 #14420792 未加载
pwalmost 8 years ago
I wonder if this is an independent effort or if it&#x27;s built on top of AWS Lambda.<p>Also, anyone know why all these serverless environments that are coming out focus on Node.js?
评论 #14419989 未加载
评论 #14420100 未加载
评论 #14419987 未加载
评论 #14420353 未加载
sparrishalmost 8 years ago
Other providers like Tropo have had this hosted scripting for years. Nice to see Twilio catching up.
评论 #14420537 未加载
评论 #14420054 未加载
fiatjafalmost 8 years ago
Who are these people writing SMS apps? Why is Twilio so proeminent when no one uses SMS anymore?
评论 #14421154 未加载
评论 #14421541 未加载
评论 #14423953 未加载
评论 #14424769 未加载
评论 #14424707 未加载
评论 #14425122 未加载
sagivoalmost 8 years ago
I love the new popularity of lambda&#x2F;functions as a service. each provider can now give you a custom code to do whatever you like, stripping away the needs for servers and that what i can really see as a full &quot;micro-service&quot;
ryanaralmost 8 years ago
I wish Twilio had free offerings for their other services. I didnt even dare playing around testing Twilio because I would be getting charged 2 cents per SMS sent
评论 #14420421 未加载
评论 #14420327 未加载
评论 #14420330 未加载
评论 #14424281 未加载
jknoepfleralmost 8 years ago
The success of this product is dependent on torpedoing aws lambda from a usability and reliability perspective imo (not hard). After using twilio to build the sms side off of an app I&#x27;ve been quietly rooting for them (and betting on them actively)<p>If they built this ON lambda then I&#x27;d bet against it very strongly, but I can&#x27;t imagine smart engineers doing that in 2017 (ha...)
评论 #14419681 未加载
评论 #14419704 未加载
评论 #14419678 未加载
评论 #14419664 未加载