Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreWe are pleased to announce the release of Spring Cloud Task 1.0.1.RELEASE. This is the recommended GA release for Spring Cloud Task and is available from Maven Central as well as the usual other locations.
Spring Cloud Task, is a step in an evolution of data applications in the Spring portfolio. As we announce this release, it may be helpful to look at how we got to this point.
Built upon the Spring portfolio, the evolution of this type of finite workload really began with Spring Batch. One of the main workload specific extensions of the Spring framework, Spring Batch provided functionality for performing finite amounts of processing in an enterprise friendly way. With multiple processing models (Tasklet
vs Chunk) as well as scalability options that allowed for optimizing data processing both within a single JVM and using multiple JVMs. Spring Batch has served as the standard bearer of finite processing on the JVM for many years.
Spring XD served as the next step in the evolution to Spring Cloud Task. Spring XD provided the ability to orchestrate Spring Batch jobs in a distributed environment. However, Spring XD, while providing a great tool for the orchestration of batch jobs, identified for us the need for a tool that was a bit more abstract than a job. When looking at use cases in the big data world (and since beyond), there are many that don't require the overhead of a batch job and so forcing that model onto processes didn't make sense. That got us thinking...
The rearchitecting of Spring XD into Spring Cloud Data Flow also provided us with some insights. When looking at modern application runtimes like Cloud Foundry, Mesos, YARN, and Kubernetes, we identified that most of them provided facilities for short lived applications. However, the way a user interacted with them, tracked their results, etc was different from runtime to runtime. On Cloud Foundry, Diego provides the concept of a task but their results are ephemeral. On YARN, there is the Job History Server that may or may not be configured. Kubernetes keeps the pods around after the job has been completed.
Providing a single consistent way of constructing finite data microservices in a platform independent way as well as providing both operational and functional features would be useful...
Spring Cloud Task was born out of the idea that there are functions that need to be executed in an enterprise environment that do not require a long running application.
Spring Cloud task provides the following capabilities:
@EnableTask
annotation, you get the capabilities of Spring Cloud Task with no additional code.PartitionHandler
that allows the launching of workers as tasks for partitioned jobs.All of the main features mentioned above were available in the 1.0.0.RC1 release and can be read about here. What is different in this release is that the dependencies have been refactored so that instead of including spring-cloud-task-core
and any of the additional task modules desired, you can now include just the spring-cloud-task-starter
dependency and the other spring modules you want to obtain the expected functionality.
For example, if a developer wants to write a batch job that is run as a task, instead of needing the spring-cloud-task-core
, spring-cloud-task-batch
, and spring-boot-starter-batch
in your pom, now you only need the spring-cloud-task-starter
and the spring-boot-starter-batch
. The batch features will be automatically bootstrapped for you (with simple options for overrides as with all Boot autoconfig).
Spring Cloud Task is now GA and we're excited to hear from you. Our short-term focus will be to improve Spring Cloud Task's interoperability with Spring Cloud Data Flow and the runtimes it supports. However, we look forward to hearing from you in the comments below, elsewhere online on StackOverflow and Twitter, as well as in person at Spring One Platform next month!