[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-693093-105":59,"doc-detail-693093-en":130,"doc-similar-693093":153},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","tcss-562-tutorial-8-introduction-to-lambda-iv-aws-step-functions-aws-sqs","TCSS 562 - Tutorial 8 - Introduction to Lambda IV - AWS Step Functions, AWS SQS","","Tutorial 8 for TCSS 562 (Software Engineering) introduces AWS Lambda orchestration with AWS Step Functions for multifunction serverless applications. The tutorial explains how Step Functions define state machines that run control flow on the cloud side, requiring the client only to invoke the workflow. It guides modifications to Caesar cipher Encode/Decode Lambda functions so Step Functions can pass JSON inputs and manage shifted/unshifted processing automatically, including timing metrics for encode/decode execution.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/tcss-562-tutorial-8-introduction-to-lambda-iv-aws-step-functions-aws-sqs/693093/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/tcss-562-tutorial-8-introduction-to-lambda-iv-aws-step-functions-aws-sqs/693093.png","ImageObject",300,407,{"name":92,"@type":93},"supergirl","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-13","2026-11-09",true,{"@type":102,"interactionType":103,"userInteractionCount":81},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What problem does AWS Step Functions solve in this tutorial?","Question",{"text":112,"@type":113},"It instruments serverless control flow by running a state machine on the cloud-provider side, so the client calls the workflow instead of coordinating calls directly.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What must be changed in the Encode Lambda output for use with Step Functions?",{"text":117,"@type":113},"The Encode function must return JSON key/value pairs (including msg and shift) matching what the Decode function expects as its input.",{"name":119,"@type":110,"acceptedAnswer":120},"How are encode and decode execution times measured in the tutorial?",{"text":121,"@type":113},"The tutorial captures System.currentTimeMillis() at the start and end of handleRequest() and stores the differences into fields like decodeTime and encodeTime in the response object.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},693093,1794249665,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":81,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":41,"preview_page_count":14,"preview_urls":144},962088121634,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","TCSS 562: Software Engineering School of Engineering and Technology  \nfor Cloud Computing University of Washington – Tacoma  \nFall 2021  \n[http://faculty.washington.edu/wlloyd/courses/tcss562](http://faculty.washington.edu/wlloyd/courses/tcss562)  \nTutorial 8 – Introduction to Lambda IV:  \nAWS Step Functions, AWS SQS  \nDisclaimer: Subject to updates as corrections are found  \nVersion 0.10  \nThe purpose of this tutorial is to introduce the use of AWS Step Functions to instrument control flow for multifunction serverless applications. The tutorial also provides a brief introduction to the Simple Queue Service (SQS) .  \nAWS Step Functions support defining state machines to specify the serverless application control flow for aserverless application. Using AWS step functions, control flow is implemented on the cloud-provider’s side. The client only needs to call the state machine to execute a workflow of functions. For this tutorial, we will connect the Encode and Decode Lambda functions from Tutorial \\#4 using AWS Step Functions so that a message is passed into the Encode function, shifted, and then unshifted automatically by calling Decode. The AWS step function eliminates network traffic between the client and cloud server providing a speed-up.  \nTutorial \\#4 Caesar Cipher with a laptop client calling Lambda functions:  \nTutorial \\#8 Caesar Cipher with Step Functions client calling Lambda functions:  \n1. Update Caesar Cipher Lambda Functions For Use With AWS Step Functions  \nWhen working with AWS Step Functions, data output from one Lambda function is passed to the next Lambda function as input. To prepare the Encode and Decode Caesar cipher functions for use in an AWS Step Functions state machine, it is necessary to change the output of the encode function to generate the key/value pairs needed by the decode function.  \nFrom Tutorial \\#4, modify the [Response.java](Response.java) object so that the Encode function produces the follow JSON output:  \nEncode INPUT:  \n{  \n\"msg\": \"ServerlessComputingWithFaaS\",\"shift\": 22,  \n}  \nInvoking Lambda function:ENCODE using AWS CLI  \nreal  \nuser  \nsys  \n0m1.004s  \n0m0.312s 0m0  \nEncode OUTPUT:  \n{  \n\"msg\": \"OanranhaooYkilqpejcSepdBwwO\",  \n\"shift\": 22,  \n\"decodeTime\": 0,  \n\"encodeTime\": 1,  \n\"uuid\": \"501064cc-1b1e-4f91-9ed3-d2d04b599db7\",  \n\"error\": \"\",  \n\"vmuptime\": 1543554220,  \n\"newcontainer\": 0  \n. . . (metrics from SAAF)  \n}  \nHere, the response of the encoding is returned using the “msg” key/value pair to match the input of Decode. The “shift” is also returned so this can be passed directly to decode.  \nThis JSON can now be passed directly to the decode Lambda function.  \nLines to add to the bottom of the Encode class handleRequest method:  \n// Set return result in Response class, class is marshalled into JSON r.setMsg(msg);  \nr.setShift(shift);  \nLines to add to Response class:  \nHere we assume that Encode and Decode are combined into a single Java project to build a single deployment JAR file for both the Encode and Decode functions:  \nString msg;  \npublic String getMsg()  \n{  \nreturn msg;  \n}  \npublic void setMsg(String msg)  \n{  \nthis.msg = msg;  \n}  \nprivate int shift;  \npublic int getShift()  \n{  \nreturn shift;  \n}  \npublic void setShift(int shift)  \n{  \nthis.shift = shift;  \n}  \nlong decodeTime;  \npublic long getDecodeTime()  \n{  \nreturn decodeTime;  \n}  \npublic void setDecodeTime(long decodeTime)  \n{  \nthis.decodeTime = decodeTime;  \n}  \nlong encodeTime;  \npublic long getEncodeTime()  \n{  \nreturn encodeTime;  \n}  \npublic void setEncodeTime(long encodeTime)  \n{  \nthis.encodeTime = encodeTime;  \n}  \nIn addition to including message and shift, let’s also report the processing time for both the Encode and Decode Lambda functions. This way when the two functions are composed together we can measure execution time of the individual Lambda functions.  \nThe Java System.currentTimeMillis() can be used to capture the system time before and after execution of code in the handleRequest() me","cbCaimc7l0lVClPK","https://ap.wps.com/l/cbCaimc7l0lVClPK","pdf",549642,12,"English","# Update Caesar Cipher Lambda Functions For Use With AWS Step Functions\n## Create AWS Step Functions State Machine","[{\"question\":\"What problem does AWS Step Functions solve in this tutorial?\",\"answer\":\"It instruments serverless control flow by running a state machine on the cloud-provider side, so the client calls the workflow instead of coordinating calls directly.\"},{\"question\":\"What must be changed in the Encode Lambda output for use with Step Functions?\",\"answer\":\"The Encode function must return JSON key/value pairs (including msg and shift) matching what the Decode function expects as its input.\"},{\"question\":\"How are encode and decode execution times measured in the tutorial?\",\"answer\":\"The tutorial captures System.currentTimeMillis() at the start and end of handleRequest() and stores the differences into fields like decodeTime and encodeTime in the response object.\"}]","TCSS 562 - Tutorial 8 - Introduction to Lambda IV - AWS Step Functions, AWS SQS | PDF",[145,149],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/06c10a6e9a9adb6a62a45cdab9af148c.webp",983,1272,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/d30f9bf255f1b6e954d6a41abc220b56.webp",982,1270,{"list":154,"token":66},[155,161,167,173,179,185,191,197,203,209],{"doc_id":156,"doc_title":157,"file_type":137,"home_preview_img_url":158,"slug":159,"view_count":19,"category_name":30,"create_tm":160},693091,"AWS Lambda Tutorial - Serverless Compute Overview - Audience, Prerequisites, Setup, and Function Building","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005085131/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=yLISd0sxI%2FHLwGhM46rjZobt0sM%3D","aws-lambda-tutorial-serverless-compute-overview-audience-prerequisites-setup-and-function-building",1794249657,{"doc_id":162,"doc_title":163,"file_type":137,"home_preview_img_url":164,"slug":165,"view_count":24,"category_name":30,"create_tm":166},693089,"Tutorial 4 - Introduction to AWS Lambda with the Serverless Application Analytics Framework (SAAF)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005085127/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=rhUAXH4LLe%2BQ21bBcdoUVmyNIpw%3D","tutorial-4-introduction-to-aws-lambda-with-the-serverless-application-analytics-framework-saaf",1794249655,{"doc_id":168,"doc_title":169,"file_type":137,"home_preview_img_url":170,"slug":171,"view_count":19,"category_name":30,"create_tm":172},703206,"Serverless Architectures with AWS Lambda - Overview and Best Practices","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230013458039/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=RkPlByq%2BvNxfbKW01xYuzVtDCyc%3D","serverless-architectures-with-aws-lambda-overview-and-best-practices",1794563074,{"doc_id":174,"doc_title":175,"file_type":137,"home_preview_img_url":176,"slug":177,"view_count":24,"category_name":30,"create_tm":178},682305,"Ramp-Up Guide - Serverless - AWS training and certification","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229998481184/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=ro6TYT%2Bku3ZsaYAi053Wi%2FdEnRA%3D","ramp-up-guide-serverless-aws-training-and-certification",1793965633,{"doc_id":180,"doc_title":181,"file_type":137,"home_preview_img_url":182,"slug":183,"view_count":19,"category_name":30,"create_tm":184},693122,"API402 Building advanced workflows with AWS Step Functions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230004263066/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=%2BL0DOAcVLf1RDXcAXAmvAxw1WkY%3D","api402-building-advanced-workflows-with-aws-step-functions",1794250177,{"doc_id":186,"doc_title":187,"file_type":137,"home_preview_img_url":188,"slug":189,"view_count":24,"category_name":30,"create_tm":190},693094,"Developing Serverless Applications on AWS - Course Description","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005085149/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=M3sElw0DzjmztQX%2FAiTQngCkxIw%3D","developing-serverless-applications-on-aws-course-description",1794249666,{"doc_id":192,"doc_title":193,"file_type":137,"home_preview_img_url":194,"slug":195,"view_count":52,"category_name":30,"create_tm":196},656325,"Guidance for Building a SAP Cloud Data Warehouse on AWS","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974789023/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=iUTVLGbzufa7lvjWHCWQcrZOAaY%3D","guidance-for-building-a-sap-cloud-data-warehouse-on-aws",1792967705,{"doc_id":198,"doc_title":199,"file_type":137,"home_preview_img_url":200,"slug":201,"view_count":19,"category_name":30,"create_tm":202},693120,"Orchestrating Data Pipelines on AWS - Leveraging Step Functions and SageMaker","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230004263064/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=Kvm4meKlezjqg3euiM8h3vzMxQk%3D","orchestrating-data-pipelines-on-aws-leveraging-step-functions-and-sagemaker",1794250170,{"doc_id":204,"doc_title":205,"file_type":137,"home_preview_img_url":206,"slug":207,"view_count":34,"category_name":30,"create_tm":208},657028,"Content Management Using Salesforce on AWS - Technical Architecture Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975347039/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=EY7afqgrcCwIugR3OMx4ptrUxyc%3D","content-management-using-salesforce-on-aws-technical-architecture-overview",1792972628,{"doc_id":210,"doc_title":211,"file_type":137,"home_preview_img_url":212,"slug":213,"view_count":29,"category_name":30,"create_tm":214},669978,"Excel Functions - SUM, AVERAGE, MAX, MIN, COUNT, COUNTIF, SUMIF","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988682714/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=pgHmF9oXqUz%2B8rJ2u2j%2FdLWs5fQ%3D","excel-functions-sum-average-max-min-count-countif-sumif",1793565462]