36
Technology Primer: Building Applications the New-Fashioned Way Chris Kraus DevOps: Continuous Delivery CA Technologies Product Manager DO4X125S @ChrisKraus3 #CAWorld

Technology Primer: Building Applications the New-Fashioned Way

Embed Size (px)

Citation preview

Page 1: Technology Primer: Building Applications the New-Fashioned Way

Technology Primer: Building Applications the New-Fashioned Way

Chris Kraus

DevOps: Continuous Delivery

CA Technologies

Product Manager

DO4X125S

@ChrisKraus3

#CAWorld

Page 2: Technology Primer: Building Applications the New-Fashioned Way

2 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

For Informational Purposes Only

Terms of this Presentation

© 2015 CA. All rights reserved. All trademarks referenced herein belong to their respective companies. The presentation provided at CA

World 2015 is intended for information purposes only and does not form any type of warranty. Some of the specific slides with customer

references relate to customer's specific use and experience of CA products and solutions so actual results may vary.

Certain information in this presentation may outline CA’s general product direction. This presentation shall not serve to (i) affect the rights

and/or obligations of CA or its licensees under any existing or future license agreement or services agreement relating to any CA software

product; or (ii) amend any product documentation or specifications for any CA software product. This presentation is based on current

information and resource allocations as of November 18, 2015, and is subject to change or withdrawal by CA at any time without notice. The

development, release and timing of any features or functionality described in this presentation remain at CA’s sole discretion.

Notwithstanding anything in this presentation to the contrary, upon the general availability of any future CA product release referenced in

this presentation, CA may make such release available to new licensees in the form of a regularly scheduled major product release. Such

release may be made available to licensees of the product who are active subscribers to CA maintenance and support, on a when and if-

available basis. The information in this presentation is not deemed to be incorporated into any contract.

Page 3: Technology Primer: Building Applications the New-Fashioned Way

3 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Abstract

Welcome to the application economy, where every company is a software company. You are challenged to build applications faster, cheaper and better, but can't seem to achieve all three goals at the same time. In this presentation, you will learn where the bottlenecks occur in application development and how you can spot defects earlier in the process, automate your testing and build better apps. CA Continuous Application Insight provides deep transaction insight into your Web and mobile applications, allowing developers to identify issues much earlier, make changes and produce cleaner code. The result is a better app and a dramatically improved customer experience.

Chris Kraus

CA Technologies

Product Manager

Page 4: Technology Primer: Building Applications the New-Fashioned Way

4 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Agenda

HOW ARE YOU BUILDING APS? FROM CONTRACT OR ON TOP OF LEGACY?

VISIBILITY WHEN BUILDING ON TOP OF INHERITED APPLICATIONS

Q&A

FIND THOSE SLOW ITEMS AND LOG MESSAGES

VIRTUALIZE AWAY YOUR BLOCKERS

GENERATE API TESTS AS YOUR CONSUMPTION CONTRACTS

1

2

3

4

5

6

Page 5: Technology Primer: Building Applications the New-Fashioned Way

5 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Are You Building Your Applications From Contract or on Top of Legacy?

New mobile or web development means you get the edge of technology– Latest platform iOS, Android, Chrome and Firefox browsers

with HTML5

– REST, JSON, Swagger 2.0

User Journeys are on the tip of the tongue for developers and Product Owners

Contracts first development helps team collaborate on data

Page 6: Technology Primer: Building Applications the New-Fashioned Way

6 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Early Development – Contract Based First

GET http://10.139.4.170:3434/cars-app/api/validate HTTP/1.1

{"access_token": "br73egja4qkcdd7mnf3dvgtfe6d9o053”,"firstname": "chris","lastname": "kraus","roles": [

"ROLE_USER"],"token_type": "Bearer","username": "chrisk"

}

/cars-inventory/carInventory[

{"carTrim": "Premium Plus","class": "com.ca.lisa.demo.CarInventory","color": "Silver","dealer": {

"address": "3800 Motor City Dr","city": "Denver","class": "com.ca.lisa.demo.CarDealer",

Page 7: Technology Primer: Building Applications the New-Fashioned Way

7 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Contract First Development – Simplicity in Moving Parts

Generate virtual service from: – Specifications

– Samples

Hosted Service Virtualization for Developers

Azure – CA Service Virtualization

On premise CA Service Virtualization

RAMLSwagger 2.0

WSDLWADL

Sample Request

Response data

Page 8: Technology Primer: Building Applications the New-Fashioned Way

8 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Bi-Modal IT Building Applications on Top of Existing Systems and Systems of Record

New visualization and workflows

Heavy dependencies on legacy systems for data

Multiple layers of black boxes in technology

ESB

Page 9: Technology Primer: Building Applications the New-Fashioned Way

9 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

How to I figure Out What is Below the UI and if I Can Leverage?

Deploy DevTest agents

Run transactions in the system

CA Continuous Application Insight provides the details

ESB

Page 10: Technology Primer: Building Applications the New-Fashioned Way

10 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

CA Continuous Application Insight

MOVE FROM THE WHITEBOARD DRAWING TO LIVE SYSTEMS VIEWS

Page 11: Technology Primer: Building Applications the New-Fashioned Way

11 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Payload Visibility

Page 12: Technology Primer: Building Applications the New-Fashioned Way

12 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Find Those Slow Items and Log Messages –the Easy Way

Modern applications are composites

of multiple backend servers

During development is the best place

to start thinking of performance

Assumption is code does not magically get

relatively faster on different hardware

Finding the slow part in a path is now

easily visualized in portal

Page 13: Technology Primer: Building Applications the New-Fashioned Way

13 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Find Slow Code and Blockers

Page 14: Technology Primer: Building Applications the New-Fashioned Way

14 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Use Counts in Paths

Page 15: Technology Primer: Building Applications the New-Fashioned Way

15 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Find Those Slow Items and Log Messages –the Easy Way

Great thing about system logs is there’s tons of data in there

Problem is log files can be 100 of megabytes

Finding reoccurring error messages is difficult and requires slicing

and dicing

Understanding the code emitted the message requires code access

It is even more difficult to understand the context of the application

that emitted the message

Page 16: Technology Primer: Building Applications the New-Fashioned Way

16 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Payload Visibility Log Messages in Context of Transaction

Page 17: Technology Primer: Building Applications the New-Fashioned Way

17 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Most Common Called Code

Page 18: Technology Primer: Building Applications the New-Fashioned Way

18 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Types of Code Run with Response and Logs

Page 19: Technology Primer: Building Applications the New-Fashioned Way

19 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Most Common Log Messages

Page 20: Technology Primer: Building Applications the New-Fashioned Way

20 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Exceptions Thrown in Code

Page 21: Technology Primer: Building Applications the New-Fashioned Way

21 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Virtualize Away Your Blockers

Visibility comes with advantages, you can view and isolate your development

Virtualize away– 1 step away from your development work

– Problem or unreliable systems

– Test data problems

Build regression tests at API layer for any layer of the application

Build the DevTest Sandwich to more robust regression testing

Page 22: Technology Primer: Building Applications the New-Fashioned Way

22 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Start High Level with Your Application Topology

Page 23: Technology Primer: Building Applications the New-Fashioned Way

23 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Virtualize Away a Server Used by Multiple Clients

Page 24: Technology Primer: Building Applications the New-Fashioned Way

24 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Generate API Regression Tests Automatically

Page 25: Technology Primer: Building Applications the New-Fashioned Way

25 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Isolate Systems with DevTest Sandwich

ESB

Use API tests to simulate the system or regress functionality

Stabilize the backend system response time, data, and availability with virtual services

Consistency on either side of the SUT isolates changes and provides less false failures in testing

Page 26: Technology Primer: Building Applications the New-Fashioned Way

26 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Generate API Test’s as Your Consumption Contracts

As a consumer of API’s you owe API tests that represent your use of the

API to the service producers

API tests provide a easy to run contract of consumption, UI testing usually

involves unnecessary system setup and brittle tests

API tests create horizontal trust across organizational boundaries, move

test closer to the application, and earlier in the SDLC

Failing tests is a much better warning of changings in application behavior

than failing complex multi-layered applications

Page 27: Technology Primer: Building Applications the New-Fashioned Way

27 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Document Transactions to API Functional Tests

Page 28: Technology Primer: Building Applications the New-Fashioned Way

28 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Building Horizontal Trust

Consumers of shared

services or common API’s

exist across business

unit boundaries

Mistrust prevents leveraging

common services

Mobile

Accounts

Rich Client

Accounts

Treasury

Services

Shared Services

Common API’s

1 Small Change no one will notice

Application failures

Page 29: Technology Primer: Building Applications the New-Fashioned Way

29 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Building Horizontal Trust

Failing regression tests

are opportunities to

resolve failures before

production

API tests can be run on

partially deployed

systems early in CD

workflow

Mobile

Accounts

API Tests

Rich Client

Accounts

API Tests

Treasury

Services

API Tests

Shared Services

Common API’s

1 Small Change no one will notice

Regression failures

Page 30: Technology Primer: Building Applications the New-Fashioned Way

30 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Q & A

Page 31: Technology Primer: Building Applications the New-Fashioned Way

31 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Demo – User Journey API tests

Generate Functional test

Document Transactions

Generate Functional test

Chrome plugin

Page 32: Technology Primer: Building Applications the New-Fashioned Way

32 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Handle Dynamic Data

The user data along with returned data from the application is dynamic. Generated tests are data driven and parameter driven to ensure they actually run.

Follow the user Journey

Applications are API’s used in the order of the User Journey through the application. The order of the API’s makes a difference.

Generate API test

API tests are easily generated to follow the user journey. The API’s are more stable then automating the UI’s.

The API’s should be leveraged in multiple applications.

SummaryA Few Words to Review

Page 33: Technology Primer: Building Applications the New-Fashioned Way

33 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Recommended Sessions

SESSION # TITLE DATE/TIME

DO3X113SCase Study: DBS Shares Its Continuous Delivery Journey

as a Global Financial Institution11/19/2015 at 3:00 pm

DO3X114S

Freeing the World from Slow: How Service Virtualization

and the Concept of S.P.E.E.D. Will Steer You Away from

Committing Continuous Delivery Suicide

11/19/2015 at 3:45 pm

DO3T22SBusiness Transformation: DevOps for a 10-Year-Old

(Codebase)11/19/2015 at 4:30 pm

Page 34: Technology Primer: Building Applications the New-Fashioned Way

34 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Must See Demos

Application Test DemoCreate Better Application Tests

Theater 4

DevOps Sim

DevOps Simulation Experience

Theater 3

Continuous App InsightAutomate Tests for Better Apps

Theater 4

Service VirtualizationDeliver Better Apps Faster with SV

Theater 3

Page 35: Technology Primer: Building Applications the New-Fashioned Way

35 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Follow On Conversations At…

Smart Bar

Theaters 3 & 4

Tech Talks

Theaters 3 & 4

Page 36: Technology Primer: Building Applications the New-Fashioned Way

36 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

For More Information

To learn more, please visit:

http://cainc.to/Nv2VOe

CA World ’15