{"id":962,"date":"2017-01-19T21:36:31","date_gmt":"2017-01-19T21:36:31","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/aws-serverless-lambda-scheduled-events-tweets-couchbase\/"},"modified":"2017-01-19T21:36:31","modified_gmt":"2017-01-19T21:36:31","slug":"aws-serverless-lambda-scheduled-events-tweets-couchbase","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/ko\/aws-serverless-lambda-scheduled-events-tweets-couchbase\/","title":{"rendered":"AWS Serverless Lambda Scheduled Events to Store Tweets in Couchbase"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.couchbase.com\/blog\/author\/arun-gupta\/\">This blog<\/a> has explained a few Serverless concepts with code\u00a0samples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.couchbase.com\/blog\/serverless-faas-aws-lambda-java\/\">Serverless FaaS with AWS Lambda and Java<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.couchbase.com\/blog\/aws-iot-button-lambda-couchbase\/\">AWS IoT Button, Lambda and Couchbase<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.couchbase.com\/blog\/microservice-aws-api-gateway-lambda-couchbase\/\">Microservice using AWS API Gateway, AWS Lambda and Couchbase<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.couchbase.com\/blog\/microservice-aws-serverless-application-model-couchbase\/\">Microservice using AWS Serverless Application Model and Couchbase<\/a><\/li>\n\n<\/ul>\n\n\n\n<p>This particular blog entry will show\u00a0how to use AWS Lambda to store tweets of a\u00a0tweeter in <a href=\"https:\/\/developer.couchbase.com\/server\">Couchbase.<\/a>\u00a0Here\u00a0are the high level components:<\/p>\n\n\n\n<p><a href=\"https:\/\/www.couchbase.com\/wp-content\/uploads\/sites\/5\/2026\/05\/lambda-twitter-couchbase-1024x539-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-14559\" src=\"https:\/\/www.couchbase.com\/wp-content\/uploads\/sites\/5\/2026\/05\/lambda-twitter-couchbase-1024x539-1.png\" alt=\"lambda-twitter-couchbase\" width=\"604\" height=\"318\"><\/a><\/p>\n\n\n\n<p>The key concepts are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Lambda Function deployed using <a href=\"https:\/\/www.couchbase.com\/blog\/microservice-aws-serverless-application-model-couchbase\/\">Serverless Application Model<\/a><\/li>\n\n\n<li>Triggered every 3 hours using <a href=\"https:\/\/docs.aws.amazon.com\/lambda\/latest\/dg\/with-scheduled-events.html\">Scheduled Events<\/a><\/li>\n\n\n<li>Uses <a href=\"https:\/\/twitter4j.org\/en\/\">Twitter4J<\/a> API to query new tweets since the last fetch<\/li>\n\n\n<li>Use <a href=\"https:\/\/developer.couchbase.com\/documentation\/server\/current\/sdk\/java\/start-using-sdk.html\">Couchbase Java SDK API<\/a> to store JSON documents in the\u00a0<a href=\"https:\/\/developer.couchbase.com\/server\">Couchbase Server<\/a><\/li>\n\n<\/ul>\n\n\n\n<p>Complete sample code for this blog is available at\u00a0<a href=\"https:\/\/github.com\/arun-gupta\/twitter-n1ql\">github.com\/arun-gupta\/twitter-n1ql<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Serverless Application Model<\/h2>\n\n\n\n<p><a href=\"https:\/\/aws.amazon.com\/about-aws\/whats-new\/2016\/11\/introducing-the-aws-serverless-application-model\/\">Serverless Application Model<\/a>, or SAM, defines simplified syntax for expressing serverless resources. SAM extends\u00a0<a href=\"https:\/\/aws.amazon.com\/cloudformation\/\">AWS CloudFormation<\/a>\u00a0to<br>\nadd support for API Gateway, AWS Lambda and Amazon DynamoDB. Read more details in <a href=\"https:\/\/www.couchbase.com\/blog\/microservice-aws-serverless-application-model-couchbase\/\">Microservice using AWS Serverless Application Model and Couchbase<\/a>.<br>\nFor our application, SAM template is available at <a href=\"https:\/\/github.com\/arun-gupta\/twitter-n1ql\/blob\/master\/template-example.yml\">github.com\/arun-gupta\/twitter-n1ql\/blob\/master\/template-example.yml<\/a> and shown below:<\/p>\n\n\n<p>[crayon lang=&#8221;default&#8221; decode=&#8221;true&#8221;]AWSTemplateFormatVersion : &#8216;2010-09-09&#8217;<br \/>\nTransform: AWS::Serverless-2016-10-31<br \/>\nDescription: Twitter Feed Analysis using Couchbase\/N1QL<br \/>\nResources:<br \/>\n  TrumpFeed:<br \/>\n    Type: AWS::Serverless::Function<br \/>\n    Properties:<br \/>\n      Handler: org.sample.twitter.TwitterRequestHandler<br \/>\n      Runtime: java8<br \/>\n      CodeUri: s3:\/\/arungupta.me\/twitter-feed-1.0-SNAPSHOT.jar<br \/>\n      Timeout: 30<br \/>\n      MemorySize: 1024<br \/>\n      Environment:<br \/>\n        Variables:<br \/>\n          COUCHBASE_HOST:<br \/>\n          COUCHBASE_BUCKET_PASSWORD:<br \/>\n      Role: arn:aws:iam::598307997273:role\/microserviceRole<br \/>\n      Events:<br \/>\n        Timer:<br \/>\n          Type: Schedule<br \/>\n          Properties:<br \/>\n            Schedule: rate(3 hours)[\/crayon]<\/p>\n\n\n\n<p>What do we see here?<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Function is packaged and available in a S3 bucket<\/li>\n\n\n<li>Handler\u00a0class is <code>org.sample.twittter.TwitterRequestHandler<\/code> and is at\u00a0<a href=\"https:\/\/github.com\/arun-gupta\/twitter-n1ql\/blob\/master\/twitter-feed\/src\/main\/java\/org\/sample\/twitter\/TwitterRequestHandler.java\">github.com\/arun-gupta\/twitter-n1ql\/blob\/master\/twitter-feed\/src\/main\/java\/org\/sample\/twitter\/TwitterRequestHandler.java<\/a>.<br>\nIt looks like:\n<p><p>[crayon lang=&#8221;default&#8221; decode=&#8221;true&#8221;]public class TwitterRequestHandler implements RequestHandler&lt;Request, String&gt; {<\/p>\n<p>    @Override<br \/>\n    public String handleRequest(Request request, Context context) {<br \/>\n        if (request.getName() == null)<br \/>\n            request.setName(&#8220;realDonaldTrump&#8221;);<\/p>\n<p>        int tweets = new TwitterFeed().readFeed(request.getName());<\/p>\n<p>        return &#8220;Updated &#8221; + tweets + &#8221; tweets for &#8221; + request.getName() + &#8220;!&#8221;;<br \/>\n    }<\/p>\n<p>}[\/crayon]<\/p>\n<\/p>\n<p>By default, this class reads\u00a0the twitter handle of <a href=\"https:\/\/twitter.com\/realDonaldTrump\">Donald Trump<\/a>. More fun on that coming in a subsequent blog.<\/p><\/li>\n\n\n<li><code>COUCHBASE_HOST<\/code> and <code>COUCHBASE_BUCKET_PASSWORD<\/code> are environment variables that provide EC2 host\u00a0where Couchbase\u00a0database is\u00a0running and the password of the bucket.<\/li>\n\n\n<li>Function can be triggered by different events. In our case, this is\u00a0triggered every three hours. More details about the expression used here are at <a href=\"https:\/\/docs.aws.amazon.com\/lambda\/latest\/dg\/tutorial-scheduled-events-schedule-expressions.html\">Schedule Expressions Using Rate or Cron<\/a>.<\/li>\n\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Fetching Tweets using Twitter4J<\/h2>\n\n\n\n<p>Tweets are read using <a href=\"https:\/\/twitter4j.org\/en\/\">Twitter4J<\/a> API. It is an unofficial Twitter\u00a0API that provides a Java abstraction over <a href=\"https:\/\/dev.twitter.com\/rest\/public\">Twitter REST API<\/a>. Here is a simple example:<\/p>\n\n\n<p>[crayon lang=&#8221;default&#8221; decode=&#8221;true&#8221;]Twitter twitter = getTwitter();<br \/>\nPaging paging = new Paging(page, count, sinceId);<br \/>\nList list = twitter.getUserTimeline(user, paging);<br \/>\n[\/crayon]<\/p>\n\n\n\n<p><a href=\"https:\/\/twitter4j.org\/en\/code-examples.html\">Twitter4J Docs<\/a> and <a href=\"https:\/\/twitter4j.org\/en\/javadoc.html\">Javadocs<\/a> are pretty comprehensive. Twitter API allows to read only last 200 tweets. Lambda function is invoked every 3 hours.<br>\nThe tweet frequency of\u00a0<a href=\"https:\/\/twitter.com\/realDonaldTrump\">@realDonaldTrump<\/a>\u00a0is not 200 every 3 hours, at least yet. If it does reach that dangerous level then we can\u00a0adjust the rate to trigger Lambda function more\u00a0frequently.<br>\nJSON representation of each tweet is stored\u00a0in Couchbase server using <a href=\"https:\/\/developer.couchbase.com\/documentation\/server\/current\/sdk\/java\/start-using-sdk.html\">Couchbase Java SDK<\/a>. AWS Lambda supports Node, Python and C#. And so<br>\nyou can use <a href=\"https:\/\/developer.couchbase.com\/documentation\/server\/current\/sdk\/nodejs\/start-using-sdk.html\">Couchbase Node SDK<\/a>, <a href=\"https:\/\/developer.couchbase.com\/documentation\/server\/current\/sdk\/python\/start-using-sdk.html\">Couchbase Python SDK<\/a>\u00a0or<br>\n<a href=\"https:\/\/developer.couchbase.com\/documentation\/server\/current\/sdk\/dotnet\/start-using-sdk.html\">Couchbase .NET SDK<\/a> to write these functions as well. Twitter4J API allows to fetch tweets since the id of a particular tweet. This allows to<br>\nensure that duplicate tweets are not\u00a0fetched. This requires us to\u00a0sort all tweets\u00a0in a particular order and then pick the\u00a0id of the most recent tweet. This was solved using the simple <a href=\"https:\/\/developer.couchbase.com\/documentation\/server\/current\/getting-started\/first-n1ql-query.html\">N1QL query<\/a>:<\/p>\n\n\n<p>[crayon lang=&#8221;default&#8221; decode=&#8221;true&#8221;]SELECT id FROM twitter ORDER BY id DESC LIMIT 1[\/crayon]<\/p>\n\n\n\n<p>The syntax is very SQL-like. More on this in a subsequent blog.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Store Tweets in Couchbase<\/h2>\n\n\n\n<p>The final item is to store the retrieved tweets in Couchbase. Value of<code> COUCHABSE_HOST<\/code> environment variable\u00a0is used to\u00a0connect to the Couchbase instance. The value of\u00a0<code>COUCHBASE_BUCKET_PASSWORD<\/code> environment variable<br>\nis to connect to the secure bucket where all JSON documents are stored. Its\u00a0very critical that the bucket\u00a0be password protected and not directly\u00a0specified in the source code. More on this in a subsequent blog. The\u00a0JSON document<br>\nis upserted (insert or update)\u00a0in Couchbase using the Couchbase Java API:<\/p>\n\n\n<p>[crayon lang=&#8221;default&#8221; decode=&#8221;true&#8221;]bucket.upsert(jsonDocument);[\/crayon]<\/p>\n\n\n\n<p>This Lambda Function has been running for a few days now and has captured 258 tweets from <a href=\"https:\/\/twitter.com\/realDonaldTrump\">@realDonaldTrump<\/a>.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2604\" src=\"https:\/\/www.couchbase.com\/wp-content\/uploads\/sites\/5\/2026\/05\/serverless-lambda-couchbase-twitter-bucket-1024x562-1.png\" alt=\"\" width=\"1024\" height=\"562\"><\/p>\n\n\n\n<p>An interesting analysis of his tweets is coming\u00a0shortly!<\/p>\n\n\n\n<p>Talk to us:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.couchbase.com\/forums\/\">Couchbase Forums<\/a><\/li>\n\n\n<li><a href=\"https:\/\/developer.couchbase.com\/server\">Couchbase Database Developer Portal<\/a><\/li>\n\n\n<li><a href=\"https:\/\/twitter.com\/couchbasedev\">@couchbasedev<\/a> and <a href=\"https:\/\/twitter.com\/couchbase\">@couchbase<\/a><\/li>\n\n<\/ul>\n\n\n\n<p>Complete sample code for this blog is available at\u00a0<a href=\"https:\/\/github.com\/arun-gupta\/twitter-n1ql\">github.com\/arun-gupta\/twitter-n1ql<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This blog has explained a few Serverless concepts with code\u00a0samples: This particular blog entry will show\u00a0how to use AWS Lambda to store tweets of a\u00a0tweeter in Couchbase.\u00a0Here\u00a0are the high level components: The key concepts are: Complete sample code for this blog is available at\u00a0github.com\/arun-gupta\/twitter-n1ql. Serverless Application Model Serverless Application Model, or SAM, defines simplified syntax [&hellip;]<\/p>\n","protected":false},"author":58,"featured_media":18,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[54],"tags":[],"ppma_author":[126],"class_list":["post-962","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-couchbase-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.6 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>AWS Serverless Lambda to Store Tweets in Couchbase<\/title>\n<meta name=\"description\" content=\"First of all, see how to use AWS serverless Lambda for storing the tweets of the Twitter in Couchbase. Also, learn how to fetch tweets using Twitter4J.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.couchbase.com\/blog\/ko\/aws-serverless-lambda-scheduled-events-tweets-couchbase\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AWS Serverless Lambda Scheduled Events to Store Tweets in Couchbase\" \/>\n<meta property=\"og:description\" content=\"First of all, see how to use AWS serverless Lambda for storing the tweets of the Twitter in Couchbase. Also, learn how to fetch tweets using Twitter4J.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/ko\/aws-serverless-lambda-scheduled-events-tweets-couchbase\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2017-01-19T21:36:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/couchbase-nosql-dbaas.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1800\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Arun Gupta, VP, Developer Advocacy, Couchbase\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@arungupta\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Arun Gupta, VP, Developer Advocacy, Couchbase\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/aws-serverless-lambda-scheduled-events-tweets-couchbase\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/aws-serverless-lambda-scheduled-events-tweets-couchbase\\\/\"},\"author\":{\"name\":\"Arun Gupta, VP, Developer Advocacy, Couchbase\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/person\\\/39d8caed0f536489b6aa6e8d31ee631f\"},\"headline\":\"AWS Serverless Lambda Scheduled Events to Store Tweets in Couchbase\",\"datePublished\":\"2017-01-19T21:36:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/aws-serverless-lambda-scheduled-events-tweets-couchbase\\\/\"},\"wordCount\":788,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/aws-serverless-lambda-scheduled-events-tweets-couchbase\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/couchbase-nosql-dbaas.png\",\"articleSection\":[\"Couchbase Server\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/aws-serverless-lambda-scheduled-events-tweets-couchbase\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/aws-serverless-lambda-scheduled-events-tweets-couchbase\\\/\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/aws-serverless-lambda-scheduled-events-tweets-couchbase\\\/\",\"name\":\"AWS Serverless Lambda to Store Tweets in Couchbase\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/aws-serverless-lambda-scheduled-events-tweets-couchbase\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/aws-serverless-lambda-scheduled-events-tweets-couchbase\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/couchbase-nosql-dbaas.png\",\"datePublished\":\"2017-01-19T21:36:31+00:00\",\"description\":\"First of all, see how to use AWS serverless Lambda for storing the tweets of the Twitter in Couchbase. Also, learn how to fetch tweets using Twitter4J.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/aws-serverless-lambda-scheduled-events-tweets-couchbase\\\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/aws-serverless-lambda-scheduled-events-tweets-couchbase\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/aws-serverless-lambda-scheduled-events-tweets-couchbase\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/couchbase-nosql-dbaas.png\",\"contentUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/couchbase-nosql-dbaas.png\",\"width\":1800,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/aws-serverless-lambda-scheduled-events-tweets-couchbase\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AWS Serverless Lambda Scheduled Events to Store Tweets in Couchbase\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/06\\\/logo.svg\",\"contentUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/06\\\/logo.svg\",\"width\":\"1024\",\"height\":\"1024\",\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/person\\\/39d8caed0f536489b6aa6e8d31ee631f\",\"name\":\"Arun Gupta, VP, Developer Advocacy, Couchbase\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f912e10b5f39748ee4f1a0b0da6f42747f0b3a94fe7acb511791468656f5e726?s=96&d=mm&r=g8900a75409c646948fe0bd80f6240337\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f912e10b5f39748ee4f1a0b0da6f42747f0b3a94fe7acb511791468656f5e726?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f912e10b5f39748ee4f1a0b0da6f42747f0b3a94fe7acb511791468656f5e726?s=96&d=mm&r=g\",\"caption\":\"Arun Gupta, VP, Developer Advocacy, Couchbase\"},\"description\":\"Arun Gupta is the vice president of developer advocacy at Couchbase. He has built and led developer communities for 10+ years at Sun, Oracle, and Red Hat. He has deep expertise in leading cross-functional teams to develop and execute strategy, planning and execution of content, marketing campaigns, and programs. Prior to that he led engineering teams at Sun and is a founding member of the Java EE team. Gupta has authored more than 2,000 blog posts on technology. He has extensive speaking experience in more than 40 countries on myriad topics and is a JavaOne Rock Star for three years in a row. Gupta also founded the Devoxx4Kids chapter in the US and continues to promote technology education among children. An author of several books on technology, an avid runner, a globe trotter, a Java Champion, a JUG leader, NetBeans Dream Team member, and a Docker Captain, he is easily accessible at @arungupta.\",\"sameAs\":[\"https:\\\/\\\/x.com\\\/arungupta\"],\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/ko\\\/author\\\/arun-gupta\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"AWS Serverless Lambda to Store Tweets in Couchbase","description":"First of all, see how to use AWS serverless Lambda for storing the tweets of the Twitter in Couchbase. Also, learn how to fetch tweets using Twitter4J.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.couchbase.com\/blog\/ko\/aws-serverless-lambda-scheduled-events-tweets-couchbase\/","og_locale":"ko_KR","og_type":"article","og_title":"AWS Serverless Lambda Scheduled Events to Store Tweets in Couchbase","og_description":"First of all, see how to use AWS serverless Lambda for storing the tweets of the Twitter in Couchbase. Also, learn how to fetch tweets using Twitter4J.","og_url":"https:\/\/www.couchbase.com\/blog\/ko\/aws-serverless-lambda-scheduled-events-tweets-couchbase\/","og_site_name":"The Couchbase Blog","article_published_time":"2017-01-19T21:36:31+00:00","og_image":[{"width":1800,"height":630,"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/couchbase-nosql-dbaas.png","type":"image\/png"}],"author":"Arun Gupta, VP, Developer Advocacy, Couchbase","twitter_card":"summary_large_image","twitter_creator":"@arungupta","twitter_misc":{"Written by":"Arun Gupta, VP, Developer Advocacy, Couchbase","Est. reading time":"4\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/aws-serverless-lambda-scheduled-events-tweets-couchbase\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/aws-serverless-lambda-scheduled-events-tweets-couchbase\/"},"author":{"name":"Arun Gupta, VP, Developer Advocacy, Couchbase","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/39d8caed0f536489b6aa6e8d31ee631f"},"headline":"AWS Serverless Lambda Scheduled Events to Store Tweets in Couchbase","datePublished":"2017-01-19T21:36:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/aws-serverless-lambda-scheduled-events-tweets-couchbase\/"},"wordCount":788,"commentCount":0,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/aws-serverless-lambda-scheduled-events-tweets-couchbase\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/couchbase-nosql-dbaas.png","articleSection":["Couchbase Server"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/aws-serverless-lambda-scheduled-events-tweets-couchbase\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/aws-serverless-lambda-scheduled-events-tweets-couchbase\/","url":"https:\/\/www.couchbase.com\/blog\/aws-serverless-lambda-scheduled-events-tweets-couchbase\/","name":"AWS Serverless Lambda to Store Tweets in Couchbase","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/aws-serverless-lambda-scheduled-events-tweets-couchbase\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/aws-serverless-lambda-scheduled-events-tweets-couchbase\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/couchbase-nosql-dbaas.png","datePublished":"2017-01-19T21:36:31+00:00","description":"First of all, see how to use AWS serverless Lambda for storing the tweets of the Twitter in Couchbase. Also, learn how to fetch tweets using Twitter4J.","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/aws-serverless-lambda-scheduled-events-tweets-couchbase\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/aws-serverless-lambda-scheduled-events-tweets-couchbase\/"]}]},{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.couchbase.com\/blog\/aws-serverless-lambda-scheduled-events-tweets-couchbase\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/couchbase-nosql-dbaas.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/couchbase-nosql-dbaas.png","width":1800,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/aws-serverless-lambda-scheduled-events-tweets-couchbase\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"AWS Serverless Lambda Scheduled Events to Store Tweets in Couchbase"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"The Couchbase Blog","description":"Couchbase, the NoSQL Database","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"The Couchbase Blog","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/06\/logo.svg","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/06\/logo.svg","width":"1024","height":"1024","caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/39d8caed0f536489b6aa6e8d31ee631f","name":"Arun Gupta, VP, Developer Advocacy, Couchbase","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/secure.gravatar.com\/avatar\/f912e10b5f39748ee4f1a0b0da6f42747f0b3a94fe7acb511791468656f5e726?s=96&d=mm&r=g8900a75409c646948fe0bd80f6240337","url":"https:\/\/secure.gravatar.com\/avatar\/f912e10b5f39748ee4f1a0b0da6f42747f0b3a94fe7acb511791468656f5e726?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f912e10b5f39748ee4f1a0b0da6f42747f0b3a94fe7acb511791468656f5e726?s=96&d=mm&r=g","caption":"Arun Gupta, VP, Developer Advocacy, Couchbase"},"description":"Arun Gupta is the vice president of developer advocacy at Couchbase. He has built and led developer communities for 10+ years at Sun, Oracle, and Red Hat. He has deep expertise in leading cross-functional teams to develop and execute strategy, planning and execution of content, marketing campaigns, and programs. Prior to that he led engineering teams at Sun and is a founding member of the Java EE team. Gupta has authored more than 2,000 blog posts on technology. He has extensive speaking experience in more than 40 countries on myriad topics and is a JavaOne Rock Star for three years in a row. Gupta also founded the Devoxx4Kids chapter in the US and continues to promote technology education among children. An author of several books on technology, an avid runner, a globe trotter, a Java Champion, a JUG leader, NetBeans Dream Team member, and a Docker Captain, he is easily accessible at @arungupta.","sameAs":["https:\/\/x.com\/arungupta"],"url":"https:\/\/www.couchbase.com\/blog\/ko\/author\/arun-gupta\/"}]}},"acf":[],"authors":[{"term_id":126,"user_id":58,"is_guest":0,"slug":"arun-gupta","display_name":"Arun Gupta, VP, Developer Advocacy, Couchbase","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts\/962","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/users\/58"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/comments?post=962"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts\/962\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/media\/18"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/media?parent=962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/categories?post=962"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/tags?post=962"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/ppma_author?post=962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}