SYS-CON MEDIA Authors: Yeshim Deniz, Zakia Bouachraoui, Liz McMillan, Janakiram MSV, Carmen Gonzalez

Blog Feed Post

Hackathoning with IoT, Blockchain, and AppDynamics

Early in the new year, AppDynamics hosted a hackathon to give employees a chance to explore technologies they were curious about, have fun, and build cross-functional relationships.

I teamed up with a group of women who were interested in researching blockchain. Other members of the team included Balwinder Kaur, Nicole Hu, Audrey Nahrvar, Jeanie Oh, and Ana Le.

There has been much speculation that blockchain will be as disruptive as the Internet revolution of the 90s. This got us thinking about what we could learn from building a dapp, a decentralized application where the backend code runs on a peer-to-peer network. We also wanted to understand the performance aspects of executing and maintaining the application on the blockchain.

A voting app struck us as a great example of a blockchain use case. As a voter, you want to be anonymous but verifiable, and you want your vote to be tamper proof. Blockchain solves these requirements in a couple of ways. It uses public key cryptography to ensure that each vote is recorded accurately. At the same time, the integrity of each transaction is safeguarded by the multiple nodes on a blockchain, making blockchain applications extremely secure. Our goal was not only to code an application but to learn the entire process of deploying smart contracts on the blockchain. We wanted to interact with the blockchain, identify the performance metrics associated with our app, and ingest those metrics into an AppDynamics dashboard. To that end, we bootstrapped a Smart Ballot dapp that initialized the contestants running in the election and tracked the total votes received by each of the contestants. We developed the application on Ganache, a personal blockchain for Ethereum for reasons I’ll explain below.

We chose the Ethereum blockchain because we thought the large and supportive community would make it easier for us to set up the development environment and publish an application during the two-day hackathon.

The next step was to use Raspberry Pi as a voting device running Web3js (an Ethereum compatible Javascript API). The end-to-end flow of our application was designed to work in the real world in the following way: Each time someone placed a vote on our voting machine, it would convert the ballot into a smart contract that was then compiled into bytecode and sent to the blockchain. The blockchain would then execute this contract, record it in a block (the equivalent of a page in a ledger book), and add the block to the blockchain. From a business perspective, the total cost of processing the smart contracts translated into the cost of registering each vote

With the end-to-end flow in place we now had the opportunity to monitor the performance aspects of the voting application. For example, the total cost of executing each smart contract could be tracked, and if it began to fluctuate in a way that didn’t match our expectations we could decide whether our implementation needed adjustment. Research into blockchain metrics led us to Geth (the Go implementation of the Ethereum protocol). We learned that Geth processes were created when we spun up an Ethereum blockchain environment. Once created, these processes kept track of arbitrary events and measured their duration. We queried a variety of metrics derived from the Geth processes through an RPC API.

One of the most important metrics we looked at was “Gas.” In the blockchain world, gas is the price of computation that is paid to individuals, known as miners, who participate in transacting on the blockchain. Gas is correlated to tera-hashes per second. When a transaction is originated, it has a gas price associated with it, allowing miners to pick and choose the most lucrative transactions. Typically, transactions vary in cost depending on the computational power they require to complete various operations. In this experiment we captured costs per transaction using gas price multiplied by the transaction volume. We also looked at “Difficulty,” which is a standard blockchain measure of how difficult it can be to find a hash below a given target. Significant departures from the baseline performance of the application triggered an alert.

Finally, we wanted to provide visibility into any network issues that could be affecting blockchain actors. We understood that any issues would clearly impact end users as well as applications relying on a blockchain transaction. To that end we captured, total requests/min and response times. Here is a view of the metrics we collected on the AppDynamics IoT dashboard:

Naturally, we encountered some glitches. The main problem we faced was creating an account for ourselves on the Ethereum blockchain. It turns out that it’s huge and not suitable for quickly getting up and running. We tried for twelve hours to download the entire Ethereum development environment before we decided to use the Ganache client.

Experimenting with a new technology is always rewarding. It was gratifying to see how easy it was to deploy AppDynamics to monitor a distributed application running on a blockchain and begin collecting useful information. It is one thing to know that metrics are available in theory, and other to see them displayed on a screen, tracking transactions as new blocks were mined and added to the chain.

 

 

The post Hackathoning with IoT, Blockchain, and AppDynamics appeared first on Application Performance Monitoring Blog | AppDynamics.

Read the original blog entry...

More Stories By AppDynamics Blog

In high-production environments where release cycles are measured in hours or minutes — not days or weeks — there's little room for mistakes and no room for confusion. Everyone has to understand what's happening, in real time, and have the means to do whatever is necessary to keep applications up and running optimally.

DevOps is a high-stakes world, but done well, it delivers the agility and performance to significantly impact business competitiveness.

Latest Stories
The standardization of container runtimes and images has sparked the creation of an almost overwhelming number of new open source projects that build on and otherwise work with these specifications. Of course, there's Kubernetes, which orchestrates and manages collections of containers. It was one of the first and best-known examples of projects that make containers truly useful for production use. However, more recently, the container ecosystem has truly exploded. A service mesh like Istio a...
Technology has changed tremendously in the last 20 years. From onion architectures to APIs to microservices to cloud and containers, the technology artifacts shipped by teams has changed. And that's not all - roles have changed too. Functional silos have been replaced by cross-functional teams, the skill sets people need to have has been redefined and the tools and approaches for how software is developed and delivered has transformed. When we move from highly defined rigid roles and systems to ...
After years of investments and acquisitions, CloudBlue was created with the goal of building the world's only hyperscale digital platform with an increasingly infinite ecosystem and proven go-to-market services. The result? An unmatched platform that helps customers streamline cloud operations, save time and money, and revolutionize their businesses overnight. Today, the platform operates in more than 45 countries and powers more than 200 of the world's largest cloud marketplaces, managing mo...
BMC has unmatched experience in IT management, supporting 92 of the Forbes Global 100, and earning recognition as an ITSM Gartner Magic Quadrant Leader for five years running. Our solutions offer speed, agility, and efficiency to tackle business challenges in the areas of service management, automation, operations, and the mainframe.
Docker and Kubernetes are key elements of modern cloud native deployment automations. After building your microservices, common practice is to create docker images and create YAML files to automate the deployment with Docker and Kubernetes. Writing these YAMLs, Dockerfile descriptors are really painful and error prone.Ballerina is a new cloud-native programing language which understands the architecture around it - the compiler is environment aware of microservices directly deployable into infra...
The widespread success of cloud computing is driving the DevOps revolution in enterprise IT. Now as never before, development teams must communicate and collaborate in a dynamic, 24/7/365 environment. There is no time to wait for long development cycles that produce software that is obsolete at launch. DevOps may be disruptive, but it is essential. DevOpsSUMMIT at CloudEXPO expands the DevOps community, enable a wide sharing of knowledge, and educate delegates and technology providers alike.
The graph represents a network of 1,329 Twitter users whose recent tweets contained "#DevOps", or who were replied to or mentioned in those tweets, taken from a data set limited to a maximum of 18,000 tweets. The network was obtained from Twitter on Thursday, 10 January 2019 at 23:50 UTC. The tweets in the network were tweeted over the 7-hour, 6-minute period from Thursday, 10 January 2019 at 16:29 UTC to Thursday, 10 January 2019 at 23:36 UTC. Additional tweets that were mentioned in this...
At CloudEXPO Silicon Valley, June 24-26, 2019, Digital Transformation (DX) is a major focus with expanded DevOpsSUMMIT and FinTechEXPO programs within the DXWorldEXPO agenda. 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 throug...
The platform combines the strengths of Singtel's extensive, intelligent network capabilities with Microsoft's cloud expertise to create a unique solution that sets new standards for IoT applications," said Mr Diomedes Kastanis, Head of IoT at Singtel. "Our solution provides speed, transparency and flexibility, paving the way for a more pervasive use of IoT to accelerate enterprises' digitalisation efforts. AI-powered intelligent connectivity over Microsoft Azure will be the fastest connected pat...
Apptio fuels digital business transformation. Technology leaders use Apptio's machine learning to analyze and plan their technology spend so they can invest in products that increase the speed of business and deliver innovation. With Apptio, they translate raw costs, utilization, and billing data into business-centric views that help their organization optimize spending, plan strategically, and drive digital strategy that funds growth of the business. Technology leaders can gather instant recomm...
At CloudEXPO Silicon Valley, June 24-26, 2019, Digital Transformation (DX) is a major focus with expanded DevOpsSUMMIT and FinTechEXPO programs within the DXWorldEXPO agenda. 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 throug...
As you know, enterprise IT conversation over the past year have often centered upon the open-source Kubernetes container orchestration system. In fact, Kubernetes has emerged as the key technology -- and even primary platform -- of cloud migrations for a wide variety of organizations. Kubernetes is critical to forward-looking enterprises that continue to push their IT infrastructures toward maximum functionality, scalability, and flexibility. As they do so, IT professionals are also embr...
In today's always-on world, customer expectations have changed. Competitive differentiation is delivered through rapid software innovations, the ability to respond to issues quickly and by releasing high-quality code with minimal interruptions. DevOps isn't some far off goal; it's methodologies and practices are a response to this demand. The demand to go faster. The demand for more uptime. The demand to innovate. In this keynote, we will cover the Nutanix Developer Stack. Built from the foundat...
CloudEXPO has been the M&A capital for Cloud companies for more than a decade with memorable acquisition news stories which came out of CloudEXPO expo floor. DevOpsSUMMIT New York faculty member Greg Bledsoe shared his views on IBM's Red Hat acquisition live from NASDAQ floor. Acquisition news was announced during CloudEXPO New York which took place November 12-13, 2019 in New York City.
ShieldX's CEO and Founder, Ratinder Ahuja, believes that traditional security solutions are not designed to be effective in the cloud. The role of Data Loss Prevention must evolve in order to combat the challenges of changing infrastructure associated with modernized cloud environments. Ratinder will call out the notion that security processes and controls must be equally dynamic and able to adapt for the cloud. Utilizing four key factors of automation, enterprises can remediate issues and impro...