Giter VIP home page Giter VIP logo

Comments (7)

rmaugusto avatar rmaugusto commented on September 24, 2024 2

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.

sapessi avatar sapessi commented on September 24, 2024 1

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.

sapessi avatar sapessi commented on September 24, 2024

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.

mkbrv avatar mkbrv commented on September 24, 2024

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.

sapessi avatar sapessi commented on September 24, 2024

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.

rmaugusto avatar rmaugusto commented on September 24, 2024

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.

starshoj avatar starshoj commented on September 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.