Your SlideShare is downloading. ×
0
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
ATM Terminal Services the RESTful Way
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

ATM Terminal Services the RESTful Way

337

Published on

Deck used by Kausal for his presentation at the JavaOne India 2013 conference on 9th May in Hyderabad.

Deck used by Kausal for his presentation at the JavaOne India 2013 conference on 9th May in Hyderabad.

Published in: Education, Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
337
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionATM Terminal Services the RESTful WayJavaOne India 2013Kausal MalladiSrivatsan SridharanInternational Institute of Information Technology - BangaloreMay 9, 2013
  • 2. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionAbout MeAn M.Tech. student from IIIT-B specializing in ComputerScienceSystems Engineer at Infosys Limited for 2 yearsA B.Tech. graduate specialized in Information Technologyfrom JNTU, HyderabadInterestsTheoretical Computer ScienceMachine LearningInformation RetrievalWeb ServicesHobbiesOccasional BloggingMusicCricketMy website - http://www.kausalmalladi.tkJavaOne India 2013
  • 3. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionAgenda1 Introduction2 The Idea3 Implementing the RESTful WaySystem ArchitectureHow is REST effective?4 Demonstration5 ConclusionJavaOne India 2013
  • 4. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionREpresentational State TransferRoy Fielding (2000)’s dissertationAn architectural style!Resource orientedResources identified by URIs (Uniform Resource Identifiers)Stateless messages which are self descriptiveResources - Conceptual target of a HyperrefResources - Retrieved as complete representation of conceptsJavaOne India 2013
  • 5. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionREpresentational State TransferMultiple representations of dataXML, Plain Text, HTML, RSS, JSON...All resources mapped to HTTP methodsGET, POST, PUT, DELETE (Universal Verbs)URIs - NounsTransport level security!A few DOs and DON’Ts on HTTP leads to REST style easily!JavaOne India 2013
  • 6. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionMotivationDesign a robust e-voting systemUsing most of the existing infrastructure (ATMs)Minimize costs to governmentsHighly scalableReal-time PerformanceSecurity and Voting guidelines to be adhered to!JavaOne India 2013
  • 7. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionWhy using ATMs?Highly scalable infrastructure already setupGood on-going research, to include Non-Financial ServicesFew modifications to business logic and database schema ofBanks can result in incorporating several Non-FinancialServicesIssues to be addressed:Increased load on Bank ServersHeavy traffic flow all the wayAdherence to Banking and Voting process related issuesSecurity!User InterfaceJavaOne India 2013
  • 8. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionArchitectureAvailable OptionsSimple extension to existing ArchitectureWeb ServicesSimple extension isn’t effective!Existing Architecture not easily knownNot an easy taskHuge loads on serversArchitecture is not same across all BanksWeb Services chosen because they can be plugged inanywhere without much difficulty!JavaOne India 2013
  • 9. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionHigh Level ArchitectureJavaOne India 2013
  • 10. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionExposed Web ServicesJavaOne India 2013
  • 11. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionWhy REST over SOAP/WSDL?REST is cleaner than SOAPSafe encapsulation of Legacy systemsREST isn’t any obscure, its the way Web works aided withsome rules!Plain Text Data exchangeNot many standards to follow other than basic HTTPmethods!JavaOne India 2013
  • 12. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionFeatures in our systemRegistration of Right to VoteATM Card registration for VotingRobust e-Voting systemJavaOne India 2013
  • 13. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionUncovering the e-Voting System1 Voter requests for One Time Password (OTP) and List ofCandidates on SMS2 User authenticates himself with ATM PIN and OTP3 Interface to capture Votes for all elections is loaded4 User enters the corresponding Candidate ID in the availableTextBox along with Voting PIN5 Vote Count for corresponding candidate is updated6 Instant result availability - key feature!JavaOne India 2013
  • 14. Agenda Introduction The Idea Implementing the RESTful Way Demonstration Conclusione-Voting : Interaction among Web ServicesJavaOne India 2013
  • 15. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionAdvantages of using REST styleScalable ComponentsSimple interfacesIndependently deployableSecureEasy real-time deploymentReal-time performanceMultiple data formatsLesser loads on serversJavaOne India 2013
  • 16. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionScalabilityREST encourages using good practices for ScalabilityEach Web Service can be deployed on a separate serverEnsures the services aren’t affected by performancebottlenecksVery close to real-time deploymentEasier Functional ScalabilityMore Non-Functional Services can be added to the ATMTerminalsJavaOne India 2013
  • 17. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionSecuritySecurity a serious issue!ATMs in private networks of BanksAll messages transferred via SSL (Secure Sockets Layer)Messages required to be transferred directly between theElection Authority and the Client are encrypted using a sharedkey (2048 bit) between ATM Terminal Client and ElectionAuthorityBank merely forwards the messages to Election Authority butwill NOT be able to read it!JavaOne India 2013
  • 18. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionReal-time DeploymentWeb Services can be deployed on different servers asinterfaces are well-definedSupports deployment on distributed serversReal-time performance because no much interaction latencyBanks already have well set-up infrastructure and setting up arobust infrastructure for Election Authority can handle hugerequests, which is a typical scenario of an e-Voting systemJavaOne India 2013
  • 19. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionMultiple Data FormatsParsing XML is a costlier processSOAP/WSDL allows only XML for interactionsXML, JSON, HTML, Plain Text are allowed in RESTParsing one data format to other not required, as the Webservices can agree on a single data format as simple as PlainText for simplicityJavaOne India 2013
  • 20. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionLoad on ServersIn an application where large number of requests are to beserved, storing state information can lead to performancebottleneckse-Voting is a system where almost 100000 clients may performsome operation plus the normal financial transactions on ATMterminals are also to be satisfiedIn REST, the servers are not required to maintain state ofclientsMessages contain necessary information required for a WebService, including but not limited to state of the clientJavaOne India 2013
  • 21. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionA Small DemonstrationAll Web Services hosted on one machine only, this is just forunderstanding of the applicationJavaOne India 2013
  • 22. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionWinding it up...REST style can facilitate many Non-Financial Services onATM TerminalsPerformance guaranteedScalable, Real-time Deployment of Web Services toaccomplish several additional tasks on ATMsUsing REST and making excellent use of existing ATM-Bankinfrastructure, a robust e-Voting system can be developed“Statelessness means that the client’s state is not maintainedby server, which states that the performance bottlenecks don’tarise!”JavaOne India 2013
  • 23. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionQuestions?JavaOne India 2013
  • 24. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionAcknowledgementMr. Sastry Malladi - Chief Architect, StubhubInspired me to try on a big stage like thisAlways provided several valuable ideas w.r.t. technologyMy encounter with “REST” happened because of him!Dr. L T Jayprakash - Associate Professor, IIIT-BGave me freedom to architect the systemJavaOne India 2013
  • 25. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionConnect!JavaOne India 2013
  • 26. Agenda Introduction The Idea Implementing the RESTful Way Demonstration ConclusionThank you!Kausal.Malladi@iiitb.orgkausalmalladi@gmail.comJavaOne India 2013

×