SYS-CON MEDIA Authors: Zakia Bouachraoui, Carmen Gonzalez, Yeshim Deniz, Pat Romanski, Gary Arora

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
Every organization is facing their own Digital Transformation as they attempt to stay ahead of the competition, or worse, just keep up. Each new opportunity, whether embracing machine learning, IoT, or a cloud migration, seems to bring new development, deployment, and management models. The results are more diverse and federated computing models than any time in our history.
Andrew Keys is co-founder of ConsenSys Enterprise. He comes to ConsenSys Enterprise with capital markets, technology and entrepreneurial experience. Previously, he worked for UBS investment bank in equities analysis. Later, he was responsible for the creation and distribution of life settlement products to hedge funds and investment banks. After, he co-founded a revenue cycle management company where he learned about Bitcoin and eventually Ethereum.
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...
Concerns about security, downtime and latency, budgets, and general unfamiliarity with cloud technologies continue to create hesitation for many organizations that truly need to be developing a cloud strategy. Hybrid cloud solutions are helping to elevate those concerns by enabling the combination or orchestration of two or more platforms, including on-premise infrastructure, private clouds and/or third-party, public cloud services. This gives organizations more comfort to begin their digital tr...
Isomorphic Software is the global leader in high-end, web-based business applications. We develop, market, and support the SmartClient & Smart GWT HTML5/Ajax platform, combining the productivity and performance of traditional desktop software with the simplicity and reach of the open web. With staff in 10 timezones, Isomorphic provides a global network of services related to our technology, with offerings ranging from turnkey application development to SLA-backed enterprise support. Leadin...
On-premise or off, you have powerful tools available to maximize the value of your infrastructure and you demand more visibility and operational control. Fortunately, data center management tools keep a vigil on memory contestation, power, thermal consumption, server health, and utilization, allowing better control no matter your cloud's shape. In this session, learn how Intel software tools enable real-time monitoring and precise management to lower operational costs and optimize infrastructure...
Data center, on-premise, public-cloud, private-cloud, multi-cloud, hybrid-cloud, IoT, AI, edge, SaaS, PaaS... it's an availability, security, performance and integration nightmare even for the best of the best IT experts. Organizations realize the tremendous benefits of everything the digital transformation has to offer. Cloud adoption rates are increasing significantly, and IT budgets are morphing to follow suit. But distributing applications and infrastructure around increases risk, introdu...
Bill Schmarzo, author of "Big Data: Understanding How Data Powers Big Business" and "Big Data MBA: Driving Business Strategies with Data Science" is responsible for guiding the technology strategy within Hitachi Vantara for IoT and Analytics. Bill brings a balanced business-technology approach that focuses on business outcomes to drive data, analytics and technology decisions that underpin an organization's digital transformation strategy. Bill has a very impressive background which includes ...
Darktrace is the world's leading AI company for cyber security. Created by mathematicians from the University of Cambridge, Darktrace's Enterprise Immune System is the first non-consumer application of machine learning to work at scale, across all network types, from physical, virtualized, and cloud, through to IoT and industrial control systems. Installed as a self-configuring cyber defense platform, Darktrace continuously learns what is ‘normal' for all devices and users, updating its understa...
DevOps has long focused on reinventing the SDLC (e.g. with CI/CD, ARA, pipeline automation etc.), while reinvention of IT Ops has lagged. However, new approaches like Site Reliability Engineering, Observability, Containerization, Operations Analytics, and ML/AI are driving a resurgence of IT Ops. In this session our expert panel will focus on how these new ideas are [putting the Ops back in DevOps orbringing modern IT Ops to DevOps].
On-premise or off, you have powerful tools available to maximize the value of your infrastructure and you demand more visibility and operational control. Fortunately, data center management tools keep a vigil on memory contestation, power, thermal consumption, server health, and utilization, allowing better control no matter your cloud's shape. In this session, learn how Intel software tools enable real-time monitoring and precise management to lower operational costs and optimize infrastructure...
While a hybrid cloud can ease that transition, designing and deploy that hybrid cloud still offers challenges for organizations concerned about lack of available cloud skillsets within their organization. Managed service providers offer a unique opportunity to fill those gaps and get organizations of all sizes on a hybrid cloud that meets their comfort level, while delivering enhanced benefits for cost, efficiency, agility, mobility, and elasticity.
Most organizations are awash today in data and IT systems, yet they're still struggling mightily to use these invaluable assets to meet the rising demand for new digital solutions and customer experiences that drive innovation and growth. What's lacking are potent and effective ways to rapidly combine together on-premises IT and the numerous commercial clouds that the average organization has in place today into effective new business solutions. New research shows that delivering on multicloud e...
The level of trust we have with individuals, businesses, and technology affects our lives daily. This is important to remember when discussing new technologies. For example, our level of trust is a critical factor when evaluating a new technology as a potential solution for providing business value. Given the importance of trust, imagine one's reaction upon hearing that blockchain is a "trustless trust" system. On the surface, that does sound like an oxymoron. This paper discusses how "trustless...
Cloud is the motor for innovation and digital transformation. CIOs will run 25% of total application workloads in the cloud by the end of 2018, based on recent Morgan Stanley report. Having the right enterprise cloud strategy in place, often in a multi cloud environment, also helps companies become a more intelligent business. Companies that master this path have something in common: they create a culture of continuous innovation. In his presentation, Dilipkumar Khandelwal outlined the latest...