Questions tagged [ratpack]

Ratpack a toolkit for creating high performance web applications built on Java and Netty.

Ratpack is a set of Java libraries that facilitate fast, efficient, evolvable and well tested HTTP applications.

It is built on the highly performant and efficient Netty event-driven networking engine. The API is optimized for Groovy and Java 8.

Optional Google Guice integration provides a foundation for scaling your application in size in a managed way.

Optional Gradle build time support makes building and testing applications a breeze.

Ratpack focuses on allowing HTTP applications to be efficient, modular, adaptive to new requirements and technologies, and well-tested over time.

enter image description here

Ratpack Introduction provides a quick comparison with similar products.

Github

88 questions
1
vote
1 answer

Ratpack 1.5.4 hystrix dependency cannot be resolved

I cannot compile my project that uses Ratpack 1.5.4 because there is a missing dependency to Hystrix 1.5.13 which cannot be resolved. http://search.maven.org/#search%7Cga%7C1%7Cg%3A"com.netflix.hystrix"%20AND%20v%3A"1.5.13" What is wrong here?
ip81
  • 13
  • 2
1
vote
1 answer

Redisson tries to connect to internal redis IP instead of floating redis IP specified in config

I'm using redisson with ratpack. Below is the configuration I've set for redisson. Config redissionConfig = new Config(); redissionConfig.setTransportMode(TransportMode.EPOLL); redissionConfig.useClusterServers() …
hisdudeness
  • 438
  • 1
  • 5
  • 15
1
vote
0 answers

Spring with Ratpack and Actuator

I am building some apis with Spring and Ratpack, using the whole Spring boot and cloud and Ratpack only for http and async-related-stuff. My current problem is the usage of this stack with Actuator. Because since I am running Ratpack and disabling…
Leonardo
  • 11
  • 2
1
vote
1 answer

Convert Springboot Controller Class in Ratpack Handler

I am not able to convert my existing REST Controller into Ratpack Handler with SpringBoot application. Please anybody help me to get this done. Below is my controller class: @RestController @RequestMapping("/api") public class RestApiController { …
1
vote
1 answer

JUnit testing of Ratpack server with Guice injection

I am trying to write a JUnit test with service dependencies being injected. protected MainClassApplicationUnderTest aut = new MainClassApplicationUnderTest(App.class) { @Override protected void addImpositions(final ImpositionsSpec…
zaynetro
  • 2,298
  • 20
  • 28
1
vote
1 answer

Return a value in Blocking.get in Ratpack

How can I return an object or list after using Blocking.get() method in Ratpack? Blocking.get(()-> xRepository.findAvailable()).then(x->x.stream().findFirst().get()); Above line returns void - I want to be able to do something like…
somename
  • 978
  • 11
  • 30
1
vote
0 answers

Non deterministic handler chain

In this video at 12:14 the demonstrator explains control flow problem with Groovy where we don't know the order of executions for the lines 1,2,3,4. The slide is like below. I don't understand why it is said that (2) can happen before or after 3,4.…
somename
  • 978
  • 11
  • 30
1
vote
2 answers

Non-blocking handler code in ratpack not working

I am trying to follow this blogpost that demonstrates blocking handler in ratpack but I could not get it to work. I am getting missing method exception for background. My build.gradle file is as below from this GitHub directory buildscript { …
somename
  • 978
  • 11
  • 30
1
vote
1 answer

Unit testing exceptions with RequestFixture and HandlingResult in Ratpack

So I know how to properly check when an exception is thrown, on my handler unit tests. However, what is the correct approach when I want to make sure an exception was not thrown? This is the best I've come up with so far: def "No exception is…
nmarques
  • 151
  • 12
1
vote
1 answer

Ratpack unable to retrieve value from body

I'm sending data via post request from the webpage to the server. $("#1, #2, #3, #4").on("click", function(){ console.log($(this).attr("id")); var xhr = new XMLHttpRequest(); xhr.open("POST",…
raycons
  • 735
  • 12
  • 26
1
vote
0 answers

Sharing configuration properties between spock and ratpack?

I'm using serverConfig to load properties at runtime into my ratpack app. ratpack { serverConfig { // Load the environment and system properties env() sysProps() require("/search", SearchConfig) } where SearchConfig is class…
Steve Anderson
  • 334
  • 1
  • 7
1
vote
0 answers

Ratpack: Response not sent when request body greater than 1 MB

I am unable to receive any response if request body size exceeds 1MB. I reduced maxContentLength to 10KB and then tried sending data grater than 10KB. I am getting error response saying request body is greater than 10KB. (expected behaviour) But…
Md Zahid Raza
  • 941
  • 1
  • 11
  • 28
1
vote
0 answers

Deploying Groovy and React Application to Heroku

I currently have a Ratpack Groovy application hosted on heroku, I've managed to get it working correctly and deploying to the URL Heroku created for me. I decided to make a ReactJS application, which grabs the data from my database from an API I've…
N P
  • 2,319
  • 7
  • 32
  • 54
1
vote
2 answers

Consume json stream data in Netty/Ratpack

I want to consume Stream of json data using Netty or Ratpack. My use case is request body will contain large json data (array of json in MBs). One way of processing data is block until complete data is received and then start processing.But, I want…
Md Zahid Raza
  • 941
  • 1
  • 11
  • 28
1
vote
1 answer

How to generate documentation for ratpack application?

While I integrating swagger2 to my rat pack application, It's not generating rest API documentation for rat pack handlers.Is it possible to generate REST API documentation with swagger2 is there any other tool to generate documentation for rat pack…