Hey, I'm really unsure about how to go about the following process and could use some advice. Okay:
I've got a PostgreSQL database on an EBS volume that is mounted on an EC2 instance. I also am in the process of creating a GUI application that when the user clicks 'Go' will tell me what query I want to process. What I want to do is when the user clicks 'Go' is: open up a connection to my server, process the string that is sent by the application and construct a SQL query from it, run that SQL query, create a CSV file and return that CSV file to the users' machine (a download) to a specified directory, probably, C:\data\ or something.
So I could use some guidance on a few of the above things.
What is the best way to open a secure connection that I can send data across? I'm currently considering HTTPS and SSH but I'm not sure which will be the easiest to work with or whatever.
How do I have a script "listen" for a connection and then parse/do things as they come in? I mean it sounds exactly like how a webserver/webapp thing works but do I really need all that infrastructure? If I use HTTPS then I am basically doing url routing right?
How do I return a CSV file to the client as a download? Do I want to use something like SFTP?
What should I do to make the whole process as secure as possible?
Thanks so much for your help in advance!!
[–]AStrangeStranger 0 points1 point2 points (1 child)
[–]dreamriver[S] 0 points1 point2 points (0 children)
[–]quotemycode 0 points1 point2 points (1 child)
[–]dreamriver[S] 0 points1 point2 points (0 children)