Welcome!

@DevOpsSummit Authors: Liz McMillan, Elizabeth White, John Rauser, Dalibor Siroky, Simon Hill

Related Topics: @DevOpsSummit, Java IoT, @CloudExpo

@DevOpsSummit: Blog Post

Amazon Dash Embodies the Stackato Vision: Part 2 By @BernardGolden | @DevOpsSummit [#DevOps]

I reverse engineered the service to understand its architecture & components that would be required to execute that transaction

I recently wrote about how Amazon's new Dash service embodies the Stackato vision; in that post I discussed how Dash reflects the Business Agility portion of our vision. As the image to the left shows, Dash is a service that offers a small button; when pressed, magic happens and an order is placed for the product (in this example, Tide detergent), which is eventually delivered to the customer.

Dash presents a very different model of retailing, changing the purchase execution from a physical retail outlet or an online website to the very location of product consumption. With this service, Amazon boxes out its retail competitors by offering a more convenient and immediate transaction. I think Dash is a really interesting and innovative offering that foreshadows the enormous changes the Third Platform portends.

In this post, I'd like to discuss the technical underpinnings of the Dash offering and how the Dash architecture aligns almost perfectly with what we've created in Stackato.

I analyzed the Dash service to understand what it would take, from a technical perspective, to begin with someone pressing a small magnetized button and end with a product showing up on the button presser's doorstep. In effect, I reverse engineered the service to understand its architecture and the components that would be required to execute that transaction.

As you can see from Figure 1 below, the Dash architecture is comprised of four tiers, each of which has multiple components.

From left to right, the four tiers are:

  • Customer tier: this is where the purchase transaction occurs. The notion of a button push isn't quite accurate, as Dash also supports use of a wand that can scan or accept voice input (e.g., "Buy a roll of Saran Wrap"). In the future, the Dash service will be built into physical devices, which will trigger purchase actions when needed products run low. In the figure, these devices are represented by a washer/dryer; as the washer runs low on soap powder, the washer will order more. It doesn't take a genius to recognize the power of a product being automatically ordered without human intervention -- it practically makes the default product choice (e.g., Tide) a lock-in, with very low probability of the consumer purchasing another product. Dash also supports a mobile app that can be used to review orders and approve or remove specific items.
  • Event tier: this tier is where the Dash orders are captured by the service's back end. A number of steps take place to process each order event to ensure the Dash application operates correctly. More on this below.
  • Application tier: This tier executed the Dash logic - managing orders, triggering ecommerce transactions, and enabling partners to interact with the Dash system.
  • Ecommerce tier: This tier represents the Amazon retail offering, where orders are accepted, payments triggered, and products shipped.

Let's look at each tier in turn.

Customer Tier
In this tier one of several devices begins a purchase transaction via one of the Dash client devices - a button, wand, or embedded hardware device (e.g., a washer). Each transaction is captured in a packet of information that is quite small - probably a few hundred bytes; all it needs to contain is the Amazon product id and the purchase indicator flag.

However, the Dash wand also allows items to be ordered by voice, which complicates things in that a voice file must be captured and submitted (and, of course, ultimately undergo transcription and validation). This aspect of orders will be discussed in the Event Tier section, which follows.

In terms of how order events are communicated, I believe that the foundation of the device/application communication is the AWS Kinesis service, which is designed to be a very high-performance, scalable, real-time event processing service. Kinesis offers a client-side library that can be embedded into a device's firmware; this library formats event submission packets in Kinesis format.

For orders submitted via voice input on the wand device, the event would probably have a flag set to indicate that a recording of the order has been stored in an S3 object.

No matter what type of device submits an order, therefore, an event is submitted to Kinesis, which resides in the Event Tier, with an optional voice recording object accompanying certain order events stored in an S3 bucket. This portion of the Dash service is indicated by the number 1 in Figure 1.

However, the Client Tier offers more functionality than submitting orders for items. The Dash mobile app allows customers to review orders and remove items which are unwanted or perhaps were ordered by accident. If orders are reviewed in this manner, approved items flow back into the system to eventually go through the ecommerce process.

The Client Tier, while quite intriguing, is actually relatively straightforward. The buttons, wands, and appliances are all transaction devices that communicate single item orders which can be transmitted in small packets and submitted to the Dash Kinesis service.

Event Tier
By contrast, the Event Tier functionality is sophisticated and relatively complex; moreover, I believe it takes advantage of a number of innovative AWS services.

As previously stated, order events are submitted to the Dash Kinesis service. Kinesis is designed to consume vast numbers of events in real-time. It does not, however, do much of anything with those events (it stores them for 24 hours, then discards those that remain in the service).

Kinesis streams (as the event recipients are known) allow programs to be attached to the stream; these programs perform operations upon the events to allow them to be processed. AWS recommends that these programs be simple, with little actual processing; instead, the event information should be extracted and then passed along to another AWS service, which can operate upon the events in a less time-bound manner than the real-time constraints within Kinesis.

Common techniques associated with additional processing include placing the event information into an SQS queue or storing the information in DynamoDB.

I believe the latter technique is what the Event Tier does, as indicated by Number 2 in the Figure. As the program attached to the Kinesis stream receives each order event, it stores it in DynamoDB; for those order events which have voice files associated with them, the DynamoDB record contains a pointer to the S3 bucket that holds the voice file.

At the November AWS re:Invent conference, Amazon announced a new service called Lambda. Lambda allows code segments to be attached to certain AWS services, with the code segment executed when a state change occurs in the AWS service. One of the AWS services which can be so configured with Lambda code segments is DynamoDB.

In the Dash service, when an order event is extracted from Kinesis, it is inserted into DynamoDB. In turn, that state change of insertion calls a Lambda code segment, which extracts an associated voice file (if submitted via a Dash wand voice command) and then calls into the Dash Application Tier for order filtering and processing.

In addition to extracting the orders from DynamoDB and submitting them to the Application Tier, the order events are placed into an AWS EMR system to facilitate Dash analytics.

While this description seems simple, the reality is anything but. In fact, in my opinion. the Event Tier is the heart of the Dash service. Most people underestimate the complexity of dealing with events in real-time. In the case of Dash, this is easy to do. First, it must be understood that the offering as it stands today, is only the beginning. Dash clients can reside in any number of devices - buttons are only the start, as the client could be placed in any number of things, including product packaging, storage containers (e.g., pantries), and so on.

Moreover, the magnitude of the Dash service is easy to underestimate, as are all IoT applications. Eventually, Dash could be processing tens of millions of events each day. While the service certainly doesn't do anywhere near that volume now, Amazon had to architect the system so that it could accommodate that sort of future load.

It certainly helps that Amazon was able to rely on existing highly scalable services like DynamoDB and EMR (and, indeed, Kinesis). Nevertheless, it had to validate functionality and performance at levels that might only be reached in several years; undoubtedly, Amazon ran load and stress tests submitting huge loads to ensure acceptable performance in the future.

Dash Application Tier
The Application Tier is where the service's logical operations are performed. One of the key operations is to filter submitted events. It is possible that multiple orders could be accidentally submitted via a Dash client (e.g., by a delighted toddler fascinated by pressing a colorful Dash button); obviously, if someone were to receive 20 (or 200!) orders of Tide, that would reduce the value of the service and cause people to terminate its use. Since part of the motivation for rolling out the Dash service is to allow Amazon to develop new competitive mechanisms against companies like Walmart, anything that might reduce user satisfaction has to be avoided.

This is why the Dash service automatically rejects multiple orders. Moreover, it won't accept even a single order if another order is already in process with the product not yet delivered to the customer. Consequently, the Dash application has to filter events to remove duplicate or premature orders.

The simplest way to accomplish this is to allow the Dash client to submit multiple orders and remove them at the back end. It is likely that the Dash application accomplishes this by inspecting every event submitted and discarding inappropriate ones.

From a technical perspective, I expect that Amazon uses the new AWS Lambda service, which allows code fragments to be attached to certain AWS services and have that code executed when a state change occurs in the service. Dash most likely attaches Lambda event filtering code to the Dash DynamoDB storage system. Every event that is inserted into it by the Kinesis event service is inspected for validity and inappropriate Dash orders are removed from DynamoDB. This filtering process is represented by the number 3 in the Figure above.

Valid orders are left in DynamoDB for a period of time so that, should the customer wish to delete one, it is possible to do so via the Dash Mobile App, represented by the number 4 in the Figure.

Once an appropriate period of time has passed, making it likely that the customers actually did want to order the product, the Dash application Order Processing takes place, pulling transactions from the Dash DynamoDB and submitting them (number 7 in the Figure) to the Amazon ecommerce engine, which then executes standard order processing and shipment, eventually resulting in the customer receiving the product.

The Application Tier is also where the Dash analytics are leveraged to share information with Dash partners - the product companies whose goods are ordered via Dash. As my earlier piece discussed, the importance of these analytics should not be underestimated. Dash can provide Dash product partners with enormous insight about buyer behavior, which is tremendously valuable for their businesses. Knowing that products are, say, more frequently ordered mid-week rather than the weekend provides a lot of knowledge that can be used in product planning and promotion. To this point, Dash analytics have barely been mentioned, but you can bet that we'll hear a lot more about them in the future.

Ecommerce Tier
In the Figure, the ecommerce Tier is deceptively simple. All that resides there is Amazon. Make no mistake, the Amazon ecommerce capability is at once more complex and yet simpler in terms of the Dash application.

Amazon's ecommerce system is, perhaps, the most sophisticated online sales system extant. Amazon's ecommerce operation is a finely-tuned amalgam of supply chain coordination, software development and operation, retail purchasing and promotion, not to mention human resource management.

From the Dash perspective, however, that can all be a black box. The Dash application needs know nothing about any of those capabilities; all it needs to do is, once it recognizes that it is time to submit an order, is to call an API with a small amount of information - product, customer name, and, perhaps order date and time. Amazon ecommerce takes care of the rest.

Conclusion
Amazon Dash represents the future of Third Platform applications. It leverages extremely capable infrastructure and services and welds them together with application-specific functionality. For companies wishing to become Third Platform organizations, the message is clear:

  • Identify your opportunity,
  • Define the application to address it,
  • Design the application to leverage existing services that are available to reduce development effort and accelerate rollout,
  • Create a new offering that delivers distinctive differentiation compared to competitors in the market.

Our Stackato PaaS product is designed to address these situations perfectly - our product motto is "enabling the future of applications." Stackato is the perfect tool to implement the Dash-specific functionality - the systems that reside in the Dash Application tier.

No matter what kind of company you are, you must be on the lookout for opportunities to create new offerings that leverage the Third Platform. Doing nothing is not an option; worse, it's a recipe for obsolescence and failure.

In my next blog post, I'll discuss the Dash application and the lessons it holds for a company seeking to avoid the "obsolescence and failure" path. I'll talk about what steps you should take to create a Dash-like offering, and how you can ensure you stay on the right path and avoid straying into unsuccessful detours. In the meantime, if you haven't taken the time to learn about the Stackato vision, watch the video here.

The post Amazon Dash Embodies the Stackato Vision: Part 2 appeared first on ActiveState.

More Stories By Bernard Golden

Bernard Golden has vast experience working with CIOs to incorporate new IT technologies and meet their business goals. Prior to joining ActiveState, he was Senior Director, Cloud Computing Enterprise Solutions, for Dell Enstratius. Before joining Dell Enstratius, Bernard was CEO of HyperStratus, a Silicon Valley cloud computing consultancy that focuses on application security, system architecture and design, TCO analysis, and project implementation. He is also the Cloud Computing Advisor for CIO Magazine and was named a "Top 50 Cloud Computing Blog" by Sys-Con Media. Bernard's writings on cloud computing have been published by The New York Times and the Harvard Business Review and he is the author of Virtualization for Dummies, Amazon Web Services for Dummies and co-author of Creating the Infrastructure for Cloud Computing. Bernard has an MBA in Business and Finance from the University of California, Berkeley.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


@DevOpsSummit Stories
SYS-CON Events announced today that CrowdReviews.com has been named “Media Sponsor” of SYS-CON's 22nd International Cloud Expo, which will take place on June 5–7, 2018, at the Javits Center in New York City, NY. CrowdReviews.com is a transparent online platform for determining which products and services are the best based on the opinion of the crowd. The crowd consists of Internet users that have experienced products and services first-hand and have an interest in letting other potential buyers learn their thoughts on their experience.
Enterprises are adopting Kubernetes to accelerate the development and the delivery of cloud-native applications. However, sharing a Kubernetes cluster between members of the same team can be challenging. And, sharing clusters across multiple teams is even harder. Kubernetes offers several constructs to help implement segmentation and isolation. However, these primitives can be complex to understand and apply. As a result, it’s becoming common for enterprises to end up with several clusters. This leads to a waste of cloud resources and increased operational overhead.
SYS-CON Events announced today that Telecom Reseller has been named “Media Sponsor” of SYS-CON's 22nd International Cloud Expo, which will take place on June 5-7, 2018, at the Javits Center in New York, NY. Telecom Reseller reports on Unified Communications, UCaaS, BPaaS for enterprise and SMBs. They report extensively on both customer premises based solutions such as IP-PBX as well as cloud based and hosted platforms.
"CA has been doing a lot of things in the area of DevOps. Now we have a complete set of tool sets in order to enable customers to go all the way from planning to development to testing down to release into the operations," explained Aruna Ravichandran, Vice President of Global Marketing and Strategy at CA Technologies, in this SYS-CON.tv interview at DevOps Summit at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
"Infoblox does DNS, DHCP and IP address management for not only enterprise networks but cloud networks as well. Customers are looking for a single platform that can extend not only in their private enterprise environment but private cloud, public cloud, tracking all the IP space and everything that is going on in that environment," explained Steve Salo, Principal Systems Engineer at Infoblox, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
While some developers care passionately about how data centers and clouds are architected, for most, it is only the end result that matters. To the majority of companies, technology exists to solve a business problem, and only delivers value when it is solving that problem. 2017 brings the mainstream adoption of containers for production workloads. In his session at 21st Cloud Expo, Ben McCormack, VP of Operations at Evernote, discussed how data centers of the future will be managed, how the public cloud best suits your organization, and what the future holds for operations and infrastructure engineers in a post-container world. Is a serverless world inevitable?
A strange thing is happening along the way to the Internet of Things, namely far too many devices to work with and manage. It has become clear that we'll need much higher efficiency user experiences that can allow us to more easily and scalably work with the thousands of devices that will soon be in each of our lives. Enter the conversational interface revolution, combining bots we can literally talk with, gesture to, and even direct with our thoughts, with embedded artificial intelligence, which can process our conversational commands and orchestrate the outcomes we request across our personal and professional realm of connected devices.
DevOps promotes continuous improvement through a culture of collaboration. But in real terms, how do you: Integrate activities across diverse teams and services? Make objective decisions with system-wide visibility? Use feedback loops to enable learning and improvement? With technology insights and real-world examples, in his general session at @DevOpsSummit, at 21st Cloud Expo, Andi Mann, Chief Technology Advocate at Splunk, explored how leading organizations use data-driven DevOps to close their feedback loops to drive continuous improvement.
SYS-CON Events announced today that Evatronix will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Evatronix SA offers comprehensive solutions in the design and implementation of electronic systems, in CAD / CAM deployment, and also is a designer and manufacturer of advanced 3D scanners for professional applications.
Sanjeev Sharma Joins June 5-7, 2018 @DevOpsSummit at @Cloud Expo New York Faculty. Sanjeev Sharma is an internationally known DevOps and Cloud Transformation thought leader, technology executive, and author. Sanjeev's industry experience includes tenures as CTO, Technical Sales leader, and Cloud Architect leader. As an IBM Distinguished Engineer, Sanjeev is recognized at the highest levels of IBM's core of technical leaders.
We all know that end users experience the Internet primarily with mobile devices. From an app development perspective, we know that successfully responding to the needs of mobile customers depends on rapid DevOps – failing fast, in short, until the right solution evolves in your customers' relationship to your business. Whether you’re decomposing an SOA monolith, or developing a new application cloud natively, it’s not a question of using microservices – not doing so will be a path to eventual business failure.
"Cloud4U builds software services that help people build DevOps platforms for cloud-based software and using our platform people can draw a picture of the system, network, software," explained Kihyeon Kim, CEO and Head of R&D at Cloud4U, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
Is advanced scheduling in Kubernetes achievable?Yes, however, how do you properly accommodate every real-life scenario that a Kubernetes user might encounter? How do you leverage advanced scheduling techniques to shape and describe each scenario in easy-to-use rules and configurations? In his session at @DevOpsSummit at 21st Cloud Expo, Oleg Chunikhin, CTO at Kublr, answered these questions and demonstrated techniques for implementing advanced scheduling. For example, using spot instances and cost-effective resources on AWS, coupled with the ability to deliver a minimum set of functionalities that cover the majority of needs – without configuration complexity.
As DevOps methodologies expand their reach across the enterprise, organizations face the daunting challenge of adapting related cloud strategies to ensure optimal alignment, from managing complexity to ensuring proper governance. How can culture, automation, legacy apps and even budget be reexamined to enable this ongoing shift within the modern software factory? In her Day 2 Keynote at @DevOpsSummit at 21st Cloud Expo, Aruna Ravichandran, VP, DevOps Solutions Marketing, CA Technologies, was joined by a panel of industry experts and real-world practitioners who shared their insight into an emerging set of best practices that lie at the heart of today's digital transformation.
SYS-CON Events announced today that Synametrics Technologies will exhibit at SYS-CON's 22nd International Cloud Expo®, which will take place on June 5-7, 2018, at the Javits Center in New York, NY. Synametrics Technologies is a privately held company based in Plainsboro, New Jersey that has been providing solutions for the developer community since 1997. Based on the success of its initial product offerings such as WinSQL, Xeams, SynaMan and Syncrify, Synametrics continues to create and hone innovative products that help customers get more from their computer applications, databases and infrastructure. To date, over one million users around the world have chosen Synametrics solutions to help power their accelerated business and personal computing needs.
As many know, the first generation of Cloud Management Platform (CMP) solutions were designed for managing virtual infrastructure (IaaS) and traditional applications. But that's no longer enough to satisfy evolving and complex business requirements. In his session at 21st Cloud Expo, Scott Davis, Embotics CTO, explored how next-generation CMPs ensure organizations can manage cloud-native and microservice-based application architectures, while also facilitating agile DevOps methodology. He explained how automation, orchestration and governance are fundamental to managing today's hybrid cloud environments and are critical for digital businesses to deliver services faster, with better user experience and higher quality, all while saving money.
SYS-CON Events announced today that Google Cloud has been named “Keynote Sponsor” of SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Companies come to Google Cloud to transform their businesses. Google Cloud’s comprehensive portfolio – from infrastructure to apps to devices – helps enterprises innovate faster, scale smarter, stay secure, and do more with data than ever before.
Cloud Expo | DXWorld Expo have announced the conference tracks for Cloud Expo 2018. Cloud Expo will be held June 5-7, 2018, at the Javits Center in New York City, and November 6-8, 2018, at the Santa Clara Convention Center, Santa Clara, CA. Digital Transformation (DX) is a major focus with the introduction of DX Expo within the program. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive over the long term. A total of 88% of Fortune 500 companies from a generation ago are now out of business. Only 12% still survive. Similar percentages are found throughout enterprises of all sizes.
Continuous Delivery makes it possible to exploit findings of cognitive psychology and neuroscience to increase the productivity and happiness of our teams. In his session at 22nd Cloud Expo | DXWorld Expo, Daniel Jones, CTO of EngineerBetter, will answer: How can we improve willpower and decrease technical debt? Is the present bias real? How can we turn it to our advantage? Can you increase a team’s effective IQ? How do DevOps & Product Teams increase empathy, and what impact does empathy have on productivity?
There is a huge demand for responsive, real-time mobile and web experiences, but current architectural patterns do not easily accommodate applications that respond to events in real time. Common solutions using message queues or HTTP long-polling quickly lead to resiliency, scalability and development velocity challenges. In his session at 21st Cloud Expo, Ryland Degnan, a Senior Software Engineer on the Netflix Edge Platform team, will discuss how by leveraging a reactive stream-based protocol, we have been able to solve many of these problems at the communication layer. This makes it possible to create rich application experiences and support use-cases such as mobile-to-mobile communication and large file transfers that would be difficult or cost-prohibitive with traditional networking.
You know you need the cloud, but you're hesitant to simply dump everything at Amazon since you know that not all workloads are suitable for cloud. You know that you want the kind of ease of use and scalability that you get with public cloud, but your applications are architected in a way that makes the public cloud a non-starter. You're looking at private cloud solutions based on hyperconverged infrastructure, but you're concerned with the limits inherent in those technologies. What do you do?
The 22nd International Cloud Expo | 1st DXWorld Expo has announced that its Call for Papers is open. Cloud Expo | DXWorld Expo, to be held June 5-7, 2018, at the Javits Center in New York, NY, brings together Cloud Computing, Digital Transformation, Big Data, Internet of Things, DevOps, Machine Learning and WebRTC to one location. With cloud computing driving a higher percentage of enterprise IT budgets every year, it becomes increasingly important to plant your flag in this fast-expanding business opportunity. Submit your speaking proposal today!
The past few years have brought a sea change in the way applications are architected, developed, and consumed—increasing both the complexity of testing and the business impact of software failures. How can software testing professionals keep pace with modern application delivery, given the trends that impact both architectures (cloud, microservices, and APIs) and processes (DevOps, agile, and continuous delivery)? This is where continuous testing comes in. D
In his Opening Keynote at 21st Cloud Expo, John Considine, General Manager of IBM Cloud Infrastructure, led attendees through the exciting evolution of the cloud. He looked at this major disruption from the perspective of technology, business models, and what this means for enterprises of all sizes. John Considine is General Manager of Cloud Infrastructure Services at IBM. In that role he is responsible for leading IBM’s public cloud infrastructure including strategy, development, and offering management. To date, IBM has launched more than 50 cloud data centers that span the globe. He has been building advanced technology, delivering “as a service” solutions, and managing infrastructure services for the past 20 years.
Digital transformation is about embracing digital technologies into a company's culture to better connect with its customers, automate processes, create better tools, enter new markets, etc. Such a transformation requires continuous orchestration across teams and an environment based on open collaboration and daily experiments. In his session at 21st Cloud Expo, Alex Casalboni, Technical (Cloud) Evangelist at Cloud Academy, explored and discussed the most urgent unsolved challenges to achieve full cloud literacy in the enterprise world.