Comments (7)
I needed to integrate Spring + Lambda + Apache Camel.
I created a demo project for that with cold start optimized.
https://github.com/rmaugusto/spring-camel-integration
Native support for Apache Camel Route would be great.
from aws-serverless-java-container.
hey @mkbrv, thanks for the +1 on Apache Camel. We'll definitely look into it. If Spring is taking too long to load you may want to consider increasing the amount of memory allocated to the Lambda function, this will also give it more CPU (hence faster start). Alternatively, both Jersey and Spark are faster at boot.
from aws-serverless-java-container.
Hi @aaron-kumar, Apache Camel Route is is not currently supported. Is this something you are interested in? We can definitely consider it for our roadmap.
Could you share some sample code on how you envision the integration with Camel Route working?
from aws-serverless-java-container.
I am considering Apache Camel as well, I have been putting some time these last days to create a custom camel component for processing http requests. Also there are significant limits on what you can do with Camel on a Lambda, since you have to hold the main thread blocked until everything else is solved, which is kind of difficult unless you don't do more than 1 route per request or any seda queues.
The issue I'm stuck with now is how to route forward dynamically (when you have parameters in the url).
Since the cold start of the Spring Boot seems to take 15-20 seconds for a simple app I might put some more time in it.
from aws-serverless-java-container.
Thanks @rmaugusto, I'll look through it. Do you think we should include something special in the library specifically for Camel or is a sample enough?
from aws-serverless-java-container.
I think the biggest difficulty was integrating the dispatcherServlet into the camel-rest (camel-restlet or camel-servlet) but it was possible to work around using ServletWrappingController.
A sample is enough =)
from aws-serverless-java-container.
@rmaugusto how do you run/deploy your sample project? I do not find template.yaml there which is necessary for "sam build" command.
@sapessi, any news on official lambda-springboot-camel example? I am currently trying to adapt our springboot-camel application to run in aws lambda. And I am struggling with some strange error when camel works perfectly while running it locally via IntelliJ AWS plugin(with "sam build" and docker container usage inside), but after deployment to cloud camel context can not start - nor via camel-spring-boot-starter nor via manual start in code. Any example of camel context successfully starting in aws lambda(when really deployed) would be really usefull.
from aws-serverless-java-container.
Related Issues (20)
- How can I get 'apigateway authorizer' context content in SpringBoot2? HOT 1
- Incorrect ServerName with ALB HOT 1
- Stable v2 release date HOT 8
- Spring throwExceptionIfNoHandlerFound is true by default as of Spring 6.1.x
- HTTP API is supported? HOT 2
- Spring for GraphQL support/ sample HOT 2
- "java.lang.NoClassDefFoundError" on Pet Store sample project HOT 3
- SpringDelegatingLambdaContainerHandler seems does not work with query parameters HOT 8
- SpringDelegatingLambdaContainerHandler should reuse AsyncInitializationWrapper HOT 5
- Not able to apply spring security on pet-store-native sample HOT 6
- No public method named handleRequest with appropriate method signature on SpringBootLambdaContainerHandler HOT 12
- `IAM` authorizer is discarded HOT 2
- Not getting reponse back directly from filter HOT 1
- Reinitialization of Spring context when using SnapStart HOT 3
- Spring Cloud Gateway throwing "hostname can't be null" based on my request only having headers and not multi-value headers HOT 4
- ServletContext: Servlet.getServletConfig() is null HOT 1
- Cannot invoke "org.springframework.web.servlet.DispatcherServlet.getServletContext()" because "servlet" is null HOT 4
- org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: No content to map due to end-of-input HOT 1
- org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: No content to map due to end-of-input HOT 8
- Cannot deserialize value of type `java.lang.String` from Object value HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-serverless-java-container.