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 3 years ago.
Improve this question
I have a school application. Where the teacher can send mail to each parent. Parent has to check email and confirm (reply) back in 2 days .
If the parent does not respond back we automatically need to send out second followup email.
Parent response will be parsed in Lambda and same will be updated in database. so that we should not send followup email .
I am using Amazon SES for sending the email.
How can implement wait for 2 days logic ? should I use lambda function or JScheduler ?
How can implement wait for 2 days logic ?
You may use AWS Step functions which is statefull state-machine workflow. The service implements a wait task you may use to way for 2 days
Related
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 1 year ago.
Improve this question
I have a service A, Service B, and Service C. A database is attached to service B. My requirement is to send data from service A every second. Service B processes the received data and store it in the database. Service C fetched processed data from the database ( by interacting with Service B ) every 5 seconds.
My question is, In the interaction between A to B, Would POST request be more efficient than PUT request considering performance constraints ( RAM and CPU usage ). Note that the request from A to B is using the same URI. Additionally, while fetching data from the database ( which is also using a single URI ) will the PUT method give me additional performance efficiency over the POST method?
There are no performance benefits between POST, PUT, DELETE. It's more a question of what your backend will do. Create a new entity? You might want to use POST. Update it? Use PUT. A more detailed answer between the two can be found here.
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
is there any api available to get details of payment object., need to integrate in java.
-how to handle event from java to get notified on get payment event ,also to get that payment information.
-is authentication for user activity based on only "api-key " or can we generate auth token for authenticate user.
Thanks
There are a few questions so I am answering the main handling payment event question.
Adyen uses webhooks to send payment status and other events to your server. You will need to expose an endpoint to handle those events.
Look at Adyen's documentation on notification webhooks for more information. You will need to parse the JSON coming from Adyen but they do have some helper methods like for HMAC validation in Java.
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 2 years ago.
Improve this question
So, i have problem. I'm making script on Java with sending logs to my discord server. And i using JDA Api. That script should send message when it will be opened. So without any events. Anyone can help me?
Thanks
Some edit: Sorry for my bad english, ima from Russia btw
You have to first get the bot instance you are working with, then get the text channel. After you made sure the bot can talk there, you can send a message (or multiple).
It would look something like this:
TextChannel textChannel = YourBotInstance.getJda().getTextChannelById("386242731875368960");
if(textChannel.canTalk()) {
textChannel.sendMessage("Your message here.").queue();
}
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 7 years ago.
Improve this question
I'm starting to build an app where people vote certain stuff just by clicking on happy/sad faces (kind of like grading it). The thing is that I dont want to make a log-in nor registration for my app (the reason is a long story). So is there any way that I can limit people's vote to 2 per day? Every phone/user could only vote twice a day, and that count will reset after 24h from the first vote.
You have tow options:
Limit the number of votes on the device, by saving the number of votes into persistant storage on the device with a timestamp and act accordingly.
Or (more secure, but also more difficult)
Track the installations as described here identifying app installation
And send the id with every request and validate on the server side.
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 8 years ago.
Improve this question
dataContext.saveSend(true);
SendEmailsToAllMembers();
I have the code above, if after half of the emails were sent out, there is a error in smtp, then how can I avoid resending emails or missing emails in this cases ?
Inside the SendEmailsToAllMembers you could store which emails have been successfully sent to. Repeat calls to the method could check if this email has already been sent successfully and therefore not resend it.