21
World ® ’1 6 Tech Talk: CA Live API Creator MythBuster: Domain Logic Requires Domain Specific Code Val Huber – Consulting Engineer – CA Technologies DO3T14TV DEVOPS

Tech Talk: CA Live API Creator MythBuster:  Domain Logic Requires Domain-specific Code

Embed Size (px)

Citation preview

World®’16

TechTalk:CALiveAPICreatorMythBuster:DomainLogicRequiresDomainSpecificCodeValHuber– ConsultingEngineer– CATechnologies

DO3T14TV

DEVOPS

2 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

©2016CA.Allrightsreserved.Alltrademarksreferencedhereinbelongtotheirrespectivecompanies.

Thecontentprovidedinthis CAWorld2016presentationisintendedforinformationalpurposesonlyanddoesnotformanytypeofwarranty. The informationprovidedbyaCApartnerand/orCAcustomerhasnotbeenreviewedforaccuracybyCA.

ForInformationalPurposesOnlyTermsofthisPresentation

3 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Abstract

MakingupdatesisvirtuallyneveramatterofmakingsimpleSQLupdates.TherehastobeBusinessLogictoenforcetheintegrityofthedata,forexampletoensurethatbalancesdon’texceedcreditlimits,orthatstudentsdon’ttaketoomanycourses.It’scommonlybelievedthatsuchdomain-specificlogic:•Requiresdomain-specificcode,andlotsofit(often10-20pagesforeachtable– it’samajoraspectofanysystem)•isimpenetrabletobusinessusers•isslowspeedandhighcomplexity:(i.e.,notcompatiblewiththeAppEconomy)Thistalkwillimaginethatsuchlogiccanbedevelopedwithadegreeofspeedandsimplicity,morelikeaspreadsheetthanadevelopmentproject.

.

ValHuber

CATechnologiesConsultingEngineer

4 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Agenda

SIZINGDOMAINLOGIC

REACTIVELOGIC

SUMMARY

SCALINGTOCOMPLEXITY– ALLOCATION

SCALINGTOCOMPLEXITY– BILLOFMATERIALS

SCALINGTOCOMPLEXITY– B2BINTEGRATION

1

2

3

4

5

6

5 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

AnatomyofaSystem– WhereIstheEffortBackendisNearlyHalf

BigNumbers:20pages,pertable(1-2months)DozenstoHundredsofTables

UI- FrontOffice30%

UI- BackOffice25%

Backend-SQL10%

Backend-Logic25%

Backend-Integration

10%

SYSTEMCOMPONENTS*

*Percentagesarebasedondomainexperience

6 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Ideal:ExecutableCocktailNapkin

200linesofcode

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

7 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WhatIsReactiveLogicSpreadsheet-likeExpressionsforMulti-Table ValidationsandComputations

1. YouProvideSpreadsheet-likeExpressions

forDBtables,columns

2. APIServerReacts toChanges,automating

• Invocation

• Chaining

• Ordering

• SQL(withOptimizations)

Simple…ADozenRules

8 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Let’sExamineaTypical,SmallProblemExecutableSpecification

Agilityü 40Xmoreconcisethancode*

Qualityü AutomaticInvocation

Maintenanceü AutomaticOrdering

Transparency

Vs…200LinesofCode

*BasedonCA’sinternaltestingandcustomerinterviews.

9 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ReactiveIsEffectiveonSmallProblems…

CathedralTermites

UseRules

Whataboutenterprise-scalecomplexity?

10 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

AllocatePayment

§ Allocateaproviderpayments.amount

todesignatedrecipientOrders,

§ creatingallocationPayment

purchase_order_allocation objects(a

Provider/RecipientJunction)foreach

suchallocation.

§ Adjustorder,customerbalances

11 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Allocation:Solution6Rules

12 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

PriceRollup

1. WhenComponentPriceChanges…

2. UpdateKitPrices,and...

3. ContainingKits

13 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

PriceRollup:Solution4Rules

14 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

APIServers…fortheAppEconomy

Web

Mobile

Partners

WebHooks

DBsAPI

Server

OmniChannelBusiness

Shippers,Suppliers

1Integration

3

2

Logic

15 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SystemsIntegration

AutomaticObjectModel

Discovery– CodeCompletion

Resources– point/clickmapping

andtransformation

Extensibility– LoadableLibraries

16 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

BusinessValueAgility,EmpowermentintheAppEconomy

Agility– GettoMarket10XFaster*

thanhandcoding

– Maintain/Iterate

(AutomaticOrdering)

Empowerment

– ExecutableSpecification

– SeeAlso…§ AppCreation§ DBCreation§ APICreation

40XMoreConcisethancoding*

*BasedonCA’sinternaltestingandcustomerinterviews.

17 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Agility,Empowerment

10XFaster*

Transparent– ExecutableSpec

Composable

LogicisComplex,Slow

5Rules:200LinesofCode

SlowtoBuild,Change

InscrutabletoBusinessUsers

ReactiveisSimple,Powerful

40XMoreConcise*

Spreadsheet-likeSimplicity

SolvesClassicalComplexCases,ExtensiblewithJavaScript

BusinessLogicIsCoreIt’stheBusinessIdea…abouthalfthesystem

*BasedonCA’sinternaltestingandcustomerinterviews,wedeterminedthatreactivelogicis40xmoreconcisethantraditionalcodeand10xfasterthantraditionalcoding.

18 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RecommendedSessions

SESSION# TITLE DATE/TIME

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

Innovation,EmpoweringAgilityfortheAppEconomy

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

19 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Questions?

20 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Stayconnectedatcommunities.ca.com

Thankyou.

21 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DevOps– APIManagementandApplicationDevelopment

FormoreinformationonDevOps– APIManagementandApplicationDevelopment,pleasevisit:http://cainc.to/DL8ozQ