+ All Categories
Home > Technology > Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to...

Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to...

Date post: 10-Jan-2017
Category:
Upload: ca-technologies
View: 36 times
Download: 1 times
Share this document with a friend
30
World ® ’1 6 PreCon Ed: Reactive Logic Val Huber, Consulting Engineer, CA D03X101LV DEVOPS
Transcript
Page 1: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

World®’16

PreCon Ed:ReactiveLogic

ValHuber,ConsultingEngineer,CA

D03X101LV

DEVOPS

Page 2: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

2 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

©2016CA.Allrightsreserved.Alltrademarksreferencedhereinbelongtotheirrespectivecompanies.

Thecontentprovidedinthis CAWorld2016presentationisintendedforinformationalpurposesonlyanddoesnotformanytypeofwarranty. The informationprovidedbyaCApartnerand/orCAcustomerhasnotbeenreviewedforaccuracybyCA.

ForInformationalPurposesOnlyTermsofthisPresentation

Page 3: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

3 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Abstract

APIsareatthecenteroftheAppEconomy,providingconnectivityforomni-channelbusiness,

includingWeb/mobileapps,partnersandon-premises/partnersystemintegration.Butinthe

past,they’vebeenquiteachoretobuild.Inthissession,youwillbuildanddeployEnterprise-

classAPIs,completewithsemanticsforlogicandsecurity.You’lllearnaboutReactiveLogicand

howtoenforcesecuritydowntotherowandcolumnlevel.You’lllearnhowtotestyourAPI,

bothwithCALiveAPICreatorandindustrystandardapproacheslikeCurl.Nopre-knowledgeof

RESTfulAPIsisrequired.Infact,thisisagreatsessiontolearnexactlywhatAPIsareallabout.

ValHuber

CATechnologiesConsultingEngineer

Page 4: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

4 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Agenda

WHYAPIS

WHAT’STHEPROBLEM

OURAPPROACH

WHEREAREWENOW

TODO:CHECKCREDITLOGICFORNORTHWIND

1

2

3

4

5

SUMMARY6

Page 5: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

5 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

APIServers…EnablingtheAppEconomyWiththeAgility toCompete

Web

Mobile

Partners

WebHooks

DBsAPI

Server

OmniChannelBusiness

Shippers,Suppliers

1Integration

3

2

Logic

Page 6: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

6 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

APIServers– WayMoreThanRestEnterprise-classAPIs…NotToys

Logic

Integration

DataAndhere’swheretherealworkis

NestedDocumentsPaginationOptimisticLockingAPI

Page 7: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

7 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

APIServers…EnablingtheAppEconomyConventionalApproachProvides…Stubs?!!

Web

Mobile

Partners

WebHooks

DBsAPI

Server

OmniChannelBusiness

Shippers,Suppliers

1Integration

3

2

LogicRaml,SwaggerStubsRestify Schema(?)

YourCodeGoes..Where?

Page 8: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

8 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

APIServerAgilityfortheAppEconomy

Web

Mobile

Partners

WebHooks

DBsAPI

Server

OmniChannelBusiness

Shippers,Suppliers

1Integration

3

2

Logic

APILogic- Automated

IntegrationLogicClientLogic§ Read/Write§ Display§ MobileAppServices

ReactiveLogic§ Multi-TableDerivationsandValidations§ Row/ColumnSecurity§ Extensible– JavaScript,Libraries§ AutomaticObjectModel

Page 9: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

9 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WhereAreWeNow

1. StartLAC3/Start.bat

2. StartChrome– clickbookmark

Alreadyinstalled(JDK,unzip)– togetstarted…

Page 10: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

10 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Developers

BusinessUsers

ExistingDatabase

NewDatabase

Create/Customize

API

ReactiveLogic&Security

CustomClientDev

CreateDBServer

DBCoding Parallelized

DevelopmentActivities

Iterate

Bottom-Up

Top-Down

Code-First

Northwind

HowThreewaystostart;stayparallel;iterate

Page 11: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

11 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Whycan’twejustmakethisexecutable?AsanAPI?

ReusedOver…ü AddOrderü DeleteOrderü PayOrderü Un-payOrderü MoveOrderü AddItemü DeleteItemü ReselectProductü ChangeQuantityü Combinations

Hundreds oflinesofcode

Page 12: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

12 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ReactiveLogic:ExecutableCocktailNapkin

ExecutableCocktailNapkin

ReusedOver…ü AddOrderü DeleteOrderü PayOrderü Un-payOrderü MoveOrderü AddItemü DeleteItemü ReselectProductü ChangeQuantityü Combinations

ReusedOver…ü AndAllEndpoints

Page 13: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

13 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WhatisReactiveLogicSpreadsheet-likeExpressionsforMulti-Table ValidationsandComputations

1. YouProvideSpreadsheet-likeExpressionsforDBtables,columns

2. APIServerReacts toChanges,automating§ Invocation§ Chaining/Ordering§ SQL(withOptimizations)

Simple…ADozenRules

Aggregate(up)

Copy(down)

Page 14: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

14 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ReactiveLogic

EnableInstantBusinessRelationshipsAPIsShareLogic.Automatically.

APILogicPoint/Click

AutomaticallyInvokedforallAPS

Agility:40XMoreConcise*

Maintenance:automaticallyordered

*BasedonCA’sinternaltestingandcustomerinterviews.

Page 15: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

15 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LAC:EnterpriseAgilityfortheAppEconomyKeyServices,foraDramaticReductioninEffort

0

20

40

60

80

100

APILogic BusinessLogic

YourEffort

Conventional LAC

Functionality

Logic

APILogicAbstractionLayer

Restify SchemaStubs

Conventional

Page 16: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

16 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Let’sExamineaTypical,SmallProblemExecutableSpecification

Agilityü 40Xmoreconcisethancode*

Qualityü AutomaticInvocation

Maintenanceü AutomaticOrdering

Transparency

Vs…200LinesofCode

*BasedonCA’sinternaltestingandcustomerinterviews.

Page 17: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

17 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LabObjectives

§ CreateAPIfromExistingDatabase(Northwind:norules)

§ CreateReactiveLogic

FollowalongwiththeInstructor

Page 18: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

18 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ReactiveisEffectiveonSmallProblems..

CathedralTermites

UseRules

WhataboutEnterprise-scaleComplexity?

Page 19: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

19 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

AllocatePayment

§ Allocateaproviderpayments.amounttodesignatedrecipientOrders,

§ creatingallocationPaymentpurchase_order_allocation objects(aProvider/RecipientJunction)foreachsuchallocation.

§ Adjustorder,customerbalances

Page 20: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

20 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Allocation:Solution6Rules

Page 21: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

21 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

PriceRollup

1. WhenComponentPriceChanges…

2. UpdateKitPrices,and...

3. ContainingKits

Page 22: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

22 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

PriceRollup:Solution4Rules

Page 23: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

23 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SystemsIntegration

Web

Mobile

Partners

WebHooks

DBsAPI

Server

OmniChannelBusiness

Shippers,Suppliers

1Integration

3

2

Logic

Page 24: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

24 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Integration,Extensibility

AutomaticObjectModel

Discovery– CodeCompletion

Resources– point/clickmapping

andtransformation

Extensibility– LoadableLibraries

Page 25: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

25 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

TransparencyRequirement

AndLogicTraceability

Page 26: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

26 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Security,WithReactiveLogicComplementingAPISecurity:Fine-GrainedDataSecurity(Row,Column)

Authentication Authorization

Page 27: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

27 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

AgilityN-FoldFasterAPI-EnabledBackend

AgileIteration

MaintainingQuality

Slow,Complex5BusinessRules–200LinesofCode

IterationslowedbyDependencies

QualityisManual

ReactiveLogic40XMoreConcise*,YetScalestoComplexity

IteratewithAutomaticOrdering

QualityThroughAutomaticInvocation

AppEconomy:APIs,withAgilityBusinessLogicisamajorcomponentofAPIs

*BasedonCA’sinternaltestingandcustomerinterviews.

Page 28: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

28 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Questions?

Page 29: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

29 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RecommendedSessions

SESSION# TITLE DATE/TIME

DO3T14TV DomainLogicRequiresDomain-SpecificCode 11/16/2016at10:00am

DO3T17TV IntegrationStrategies 11/17/2016at03:00am

DO3T15TV Myth:LowCodeisaToy 11/17/2016at03:45pm

Innovation,EmpoweringAgilityfortheAppEconomy

http://www.ca.com/us/trials.html

Page 30: Pre-Con Ed: CA Live API Creator:  Build and Deploy Enterprise-class APIs With Reactive Logic to Dramatically Reduce Coding

30 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Thankyou.

Stayconnectedatcommunities.ca.com


Recommended