spring integration java dsl

17
SPRINGONE2GX WASHINGTON, DC Unless otherwise indicated, these slides are © 2013-2015 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Spring Integration Java DSL By Artem Bilan https://spring.io/team/artembilan

Upload: spring-io

Post on 14-Jan-2017

1.393 views

Category:

Technology


5 download

TRANSCRIPT

Page 1: Spring Integration Java DSL

SPRINGONE2GX WASHINGTON, DC

Unless otherwise indicated, these sl ides are © 2013-2015 Pivotal Software, Inc. and l icensed under a Creat ive Commons Attr ibut ion-NonCommercial l icense: ht tp: / /creat ivecommons.org/ l icenses/by-nc/3.0/

Spring Integration Java DSL By Artem Bilan

https://spring.io/team/artembilan

Page 2: Spring Integration Java DSL

Unless otherwise indicated, these sl ides are © 2013-2015 Pivotal Software, Inc. and l icensed under a Creat ive Commons Attr ibut ion-NonCommercial l icense: ht tp: / /creat ivecommons.org/ l icenses/by-nc/3.0/

Safe Harbor Statement The following is intended to outline the general direction of Pivotal's offerings. It is intended for information purposes only and may not be incorporated into any contract. Any information regarding pre-release of Pivotal offerings, future updates or other planned modifications is subject to ongoing evaluation by Pivotal and is subject to change. This information is provided without warranty or any kind, express or implied, and is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions regarding Pivotal's offerings. These purchasing decisions should only be based on features currently available. The development, release, and timing of any features or functionality described for Pivotal's offerings in this presentation remain at the sole discretion of Pivotal. Pivotal has no obligation to update forward looking information in this presentation.

2

Page 3: Spring Integration Java DSL

Unless otherwise indicated, these sl ides are © 2013-2015 Pivotal Software, Inc. and l icensed under a Creat ive Commons Attr ibut ion-NonCommercial l icense: ht tp: / /creat ivecommons.org/ l icenses/by-nc/3.0/

Messaging and why do I care?

3

Page 4: Spring Integration Java DSL

4

Page 5: Spring Integration Java DSL

Unless otherwise indicated, these sl ides are © 2013-2015 Pivotal Software, Inc. and l icensed under a Creat ive Commons Attr ibut ion-NonCommercial l icense: ht tp: / /creat ivecommons.org/ l icenses/by-nc/3.0/

The heart of Spring Integration

5

–  Endpoints (Filters) connected through –  Channels (Pipes) exchanging –  Messages

Page 6: Spring Integration Java DSL

Unless otherwise indicated, these sl ides are © 2013-2015 Pivotal Software, Inc. and l icensed under a Creat ive Commons Attr ibut ion-NonCommercial l icense: ht tp: / /creat ivecommons.org/ l icenses/by-nc/3.0/

What is this man talking about?.. •  Spring Integration Java DSL premise •  Java 8 influence •  Spring is everywhere •  Code into the studio! •  The fear of complexity •  What’s new? •  Reactive Streams •  FLO for Spring Integration •  Contribution •  What next? •  Wrap up

6

Agenda

Page 7: Spring Integration Java DSL

Unless otherwise indicated, these sl ides are © 2013-2015 Pivotal Software, Inc. and l icensed under a Creat ive Commons Attr ibut ion-NonCommercial l icense: ht tp: / /creat ivecommons.org/ l icenses/by-nc/3.0/

Java 8 Hop

7

Page 8: Spring Integration Java DSL

Unless otherwise indicated, these sl ides are © 2013-2015 Pivotal Software, Inc. and l icensed under a Creat ive Commons Attr ibut ion-NonCommercial l icense: ht tp: / /creat ivecommons.org/ l icenses/by-nc/3.0/

Spring Boot Universe

8

Page 9: Spring Integration Java DSL

Unless otherwise indicated, these sl ides are © 2013-2015 Pivotal Software, Inc. and l icensed under a Creat ive Commons Attr ibut ion-NonCommercial l icense: ht tp: / /creat ivecommons.org/ l icenses/by-nc/3.0/

Demo

9

•  Read a file •  Split it line by line •  Transform to the entities •  Store to the MongoDB •  Compare solution with the XML

configuration DSL in Action

Page 10: Spring Integration Java DSL

Unless otherwise indicated, these sl ides are © 2013-2015 Pivotal Software, Inc. and l icensed under a Creat ive Commons Attr ibut ion-NonCommercial l icense: ht tp: / /creat ivecommons.org/ l icenses/by-nc/3.0/

Almost Demo

10

https://spring.io/blog/2014/11/25/spring-integration-java-dsl-line-by-line-tutorial

Page 11: Spring Integration Java DSL

Unless otherwise indicated, these sl ides are © 2013-2015 Pivotal Software, Inc. and l icensed under a Creat ive Commons Attr ibut ion-NonCommercial l icense: ht tp: / /creat ivecommons.org/ l icenses/by-nc/3.0/

What’s New in DSL 1.1?

11

•  1000 & 1 bug fixes •  256 refactorings •  125 improvements •  1 new feature

•  Spring Integration 4.2 base line •  Apache Kafka Support •  HTTP Adapters Support •  POJO method invocation •  IntegrationFlowAdapter •  WireTap •  Dynamic Languages Support •  Reactive Streams Support

Get more info from the http://spring.io/blog/2015/04/15/spring-integration-java-dsl-1-1-m1-is-available and project test cases https://github.com/spring-projects/spring-integration-java-dsl/tree/master/src/test/java/org/springframework/integration/dsl

Joke!

Page 12: Spring Integration Java DSL

Unless otherwise indicated, these sl ides are © 2013-2015 Pivotal Software, Inc. and l icensed under a Creat ive Commons Attr ibut ion-NonCommercial l icense: ht tp: / /creat ivecommons.org/ l icenses/by-nc/3.0/

Reactive Streams Trend

12

Page 13: Spring Integration Java DSL

Unless otherwise indicated, these sl ides are © 2013-2015 Pivotal Software, Inc. and l icensed under a Creat ive Commons Attr ibut ion-NonCommercial l icense: ht tp: / /creat ivecommons.org/ l icenses/by-nc/3.0/

Demo

13

Spring Flo for Spring Integration

Don’t miss Gary Russell’s talk to get more info: https://2015.event.springone2gx.com/schedule/sessions/applied_spring_integration_spring_amqp_and_rabbitmq_in_spring_xd.html

Page 14: Spring Integration Java DSL

Unless otherwise indicated, these sl ides are © 2013-2015 Pivotal Software, Inc. and l icensed under a Creat ive Commons Attr ibut ion-NonCommercial l icense: ht tp: / /creat ivecommons.org/ l icenses/by-nc/3.0/

Demo

14

Let’s contribute together!

•  Add DSL for some simple adapter •  JIRA first! •  Implement FeedMessageSourceSpec •  Add Feed Namespace Factory •  Add FeedTests •  Test the whole project and Pull

Request •  Merge •  Release Java DSL 1.1.0.RELEASE!

Page 15: Spring Integration Java DSL

Unless otherwise indicated, these sl ides are © 2013-2015 Pivotal Software, Inc. and l icensed under a Creat ive Commons Attr ibut ion-NonCommercial l icense: ht tp: / /creat ivecommons.org/ l icenses/by-nc/3.0/

What Next?

15

•  Spring Framework 5.0 foundation •  Java 8 as minimal •  Absorption of Java DSL •  Organic integration with Reactive

Streams •  Spring XD 2.0 feedback

Spring Integration

5.0

Page 16: Spring Integration Java DSL

16

Spring Integration Extensions Ecosystem Applied Spring Integration, Spring AMQP and RabbitMQ in Spring XD Stream Processing at Scale with Spring XD and Kafka Introduction to Reactive Programming

Learn More. Stay Connected.

@springcentral Spring.io/video

Related sessions

Page 17: Spring Integration Java DSL

Unless otherwise indicated, these sl ides are © 2013-2015 Pivotal Software, Inc. and l icensed under a Creat ive Commons Attr ibut ion-NonCommercial l icense: ht tp: / /creat ivecommons.org/ l icenses/by-nc/3.0/

Дякую

17