microservice architecture with grails 3

Download Microservice Architecture with Grails 3

Post on 16-Apr-2017

1.948 views

Category:

Technology

0 download

Embed Size (px)

TRANSCRIPT

  • Microservice Architecture With Grails 3

    Jeff Scott Brown @jeffscottbrown

    brownj@ociweb.com

    mailto:jbrown@pivotal.io?subject=

  • More at ociweb.com/grails

  • Copyright (c) 2015 Object Computing, Inc. All rights reserved.

    WE ARE HIRING!

    Groovy And Grails Project Work Grails 2 -> 3 Plugin Migrations Grails Plugin Development Expanding GORMs Reach New Application Profiles Grails Core Development

    grailsjobs@ociweb.com

  • Copyright (c) 2015 Object Computing, Inc. All rights reserved.

    The term "Microservice Architecture" has sprung up over the last few years to describe a particular way of designing software applications as suites of independently deployable services. While there is no precise definition of this architectural style, there are certain common characteristics around organization around business capability, automated deployment, intelligence in the endpoints, and decentralized control of languages and data.

    6

    Microservices

    Martin Fowler, http://martinfowler.com/articles/microservices.html

    http://martinfowler.com/articles/microservices.html

  • Copyright (c) 2015 Object Computing, Inc. All rights reserved.

    URL Mapping Resources

    7

  • Copyright (c) 2015 Object Computing, Inc. All rights reserved.

    URL Mapping

    8

    Method URI ActionGET /people indexGET /people/create createPOST /people saveGET /people/{id} showGET /people/{id}/edit editPUT /people/{id} updateDELETE /people/{id} delete

  • Copyright (c) 2015 Object Computing, Inc. All rights reserved.

    Versioning Resources

    9

    curl -i -H "Accept-Version: 1.0" http://localhost:8080/people

    Uses Request Header

    localhost:8080/myapp/people

  • Copyright (c) 2015 Object Computing, Inc. All rights reserved.

    Domain Class Resource Annotation

    10

    Same URL Mappings Same Controller Behavior Same Data Binding Same Rendering Etc

  • Copyright (c) 2015 Object Computing, Inc. All rights reserved.

    Extending RestfulController

    11

  • Copyright (c) 2015 Object Computing, Inc. All rights reserved.

    REST Client Builder

    12

  • Copyright (c) 2015 Object Computing, Inc. All rights reserved.

    REST Client Builder

    13

  • Copyright (c) 2015 Object Computing, Inc. All rights reserved.

    Time To Build Some Apps

    14

  • Q&A

    Jeff Scott Brown @jeffscottbrown

    brownj@ociweb.com

    mailto:jbrown@pivotal.io?subject=