Architectural details that need to be consider while developing a new software application. Advertisements
ATG Rest System in ATG 11.1
Spring boot is becoming famous and famous due to microservice architecture and advantage of spring framework support in it.As REST services are playing a huge role in microservice architecture, swagger introduces a better way to publish these REST services so that they can be tested, published as living documents. Here is a simple spring boot… Continue reading Swagger docs for Spring Boot
Async servlet is a new feature added in servlet 3.0 specification. This servlet works in a non-blocking mode. Each request is processed in a new thread which is independent of request thread. The request is temporarily suspended by application till the business logic is executed. Once the application is ready with result, the request will be resumed and… Continue reading Asynchronous Servlet in 3.0
Recursive Task is useful where the tasks are independent and caller is not expecting any return result from the task. Note: make sure that you are waiting to complete the first task. i.e (action.isDone() check) RecursiveTask Here is the example which illustrates the Recursive Task A Main program to start pool and first task, And… Continue reading Recursive Action Task in Fork/Join Framework
Fork/Join Framework which is introduced in java7 is an important framework to achieve parallel processing in java.This is very useful if you have to execute recursive operations. There are different kind of tasks which can be executed as part of fork join framework. RecursiveTask: A task which returns something after the execution RecursiveAction: A task… Continue reading ForkJoin Demonstration in JAVA
Here we can use Java8 streams to read a file content.