response time API gateway and Lambda [closed] - amazon-web-services

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
I need to build api service that would return response with in milliseconds. I am inclined towards using API gateway powered by Lambda.Say I keep my lambda warm by invoking it every 5 minutes or so. Is it slower to use API gate way powered by lambda instead of traditional web service hosted on ec2? Does any one have any experience on this matter?

Your mileage may vary, but after building a bunch of lambda functions to serve some needs I had, I ended up moving most of them back to EC2 in order to get acceptable performance. IN both cases they still use API gateway in front of them.
I still use Lambda for some functions where super-fast response is not needed, but for me it wasn't fast enough.
You should build a few examples and test yourself however, as I said - you results may be different than mine.

Related

What services would best be used to collect, transform, and store media player logs? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
A video player sends the server log data about what the user has been doing (start, pause, play, playing, etc.)
Sending the logs to the server and storing them in the DB, then running queued jobs to calculate stats on these has worked... okay, so far.
It's clear there should be some sort of optimization here. What services provide the best custom log storage?
What would be the best manual option? Considering running some Lambda functions and storing in AWS (RDS?) manually, but wondering if the maintenance of such a service is warranted.
I would store the logs in AWS S3 (Storage) and then use AWS Glue (Transform) and AWS Athena for ad-hoc querying of different stats, this will still work out cheaper than using a traditional database approach plus it has a lot of other advantages.

What is Apigee? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
Sounds like a very simple question.
What is Apigee?. I hear people at work saying react.js front end is going to call Apigee.
Could any one point me in the right direction.
Apigee Edge is an API Gateway from Google
You can create a proxy layer for all your apis
to Know more about Apigee
https://docs.apigee.com/api-platform/get-started/get-started
Yes, through apigee you can apply as many policies for your endpoint ( to have it more secure)
For example, OAuth (authentication ), shared policies, fault, error handling, setting quota limits, xmltojson conversion, transformation logics etc.
https://javabelazy.blogspot.com/
This is what I was looking for:-
https://apigee.com/about/cp/what-apigee
https://apigee.com/about/in-the-news/apigee-how-monetise-api
ApiGee is pronounced as ah-pa-gee

API management/proxy: worth it for UI-consumed API calls/internal API calls? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
Are products like Wso2/Apigee and other "api management"/api proxy tools worth using (and do people actually use them) in the following two cases:
API calls that are exclusively called by the UI of web-app
API's consumed by small numbers of systems inside a company i.e. no external users
I know the general use case of these tools is for managing external developers access to API's designed to share data/functionality with the outside.
While some features of api management tools might be irrelevant in the case of UI-called API calls and internal API calls, i am wondering if there may be a value to using them to gather metrics on calls made from the UI or internal users/apps.
Wondering if anyone actually uses api management tools for these purposes.

Passing messages from AWS to company site [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I am looking for a way to pass log events from AWS application to my company site.
The thing is that the AWS application is 100% firewalled from everything except only one IP address because it's encryption related service.
I just don't know what service I should use to do this. There's so many services so I do really have no idea what is it.
I think I'd just use simple message service, does this makes sense? The thing is there's plenty of events (let's say 1M per day), so I don't want big extra costs for this.
Sorry for the generic question, but I think it's quite concrete - "What is the most optimal way to pass event message from AWS when volume is approx 1M per day each 256 bytes on average?".
I'd like to connect to AWS service instead to any of the EC2 hosts...
On both sides I have tomcats with AWS-SDK.
I just want to avoid rewriting. Maybe I should do it with S3? The files are immutable, but I could upload files every 1h. I don't need real-time events. I just need to have logfiles on site for analysis of user experience and that customers can access it, but having log in 1M chunks would either require further assembling etc, I am really confused, sorry.
Kinesis is good for streaming event data. S3 is good if you already have files that you want stored.

How to write a web server (service) in OCaml? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 11 months ago.
Improve this question
I wish to write a web service server (using http protocol) in OCaml.
For a simple example, I want to write a http server. User can access it and provide parameter like http://myservice.com?i=1&j=2. Then my server get the request and parameters and calculate i+j and return the result.
Of course, my service will be more complicated for the calculation part. Instead of this simple example of calculation, what I really need to do is to
access the database (MongoDB) to get some data
access another 3rd party web service to get more data
calculate all data to get a result and return to the user.
So, I also need to consider parallelism / multi-threading, although I want to start with simple case first.
My questions are:
Which library should I use to first set up such a http server? I have looked into Ocamlnet 3 and think it might be a good candidate, but it lacks good tutorial and I still don't know how to use nethttpd or netplex etc.
How should I design the architecture of my web application? I know OCaml is not good at parallelism, then how can I make each service instance not blocking?