'Deploy Node server that isn't a web application

I created a Node server that receives events through webhooks, handles them, and posts their data to one API endpoint. Currently I'm deploying it using AWS Elastic Beanstalk, but I don't know if it's the best option.

  1. I don't need load balancers.

  2. I don't need web servers like Apache/Nginx.

  3. My Node server does not have any ports to receive requests, since it's a simple server that only handles webhooks events. So the EBS service will always be without metrics for requests (severe health status - because doesn't handle any of the health requests).

Should I use another type of AWS service? Docker?



Solution 1:[1]

Finally, I went for it with the App Runner AWS service for running containers. No load balancers, just elastic sizing. No web servers.

Solution 2:[2]

I found a workaround based on this post:

cppFunction('
DataFrame testme1() {
    DataFrame df = DataFrame::create(Named("a") = seq(1, 2));
    df["b"] = List::create(seq(1,10), seq(11,20));
    df.attr("class") = "data.frame";
    df.attr("row.names") = Rcpp::seq(1, 2);
    return df;
}')
testme1()

I have to explicitly (re-)set the dataframe attribute after adding the list column to the dataframe.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 GabrielBoehme
Solution 2 Egus