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 days ago.
Improve this question
Goodnight.
I'm developing a project that is a Web System for managing a company in which it will register customers and leads through an excel file, files that will contain 20k, 30k and even 60k. And I'm using FastAPI for the Back End.
I would like ideas on the best way to do this registration:
Use a Webhook: The API receives the file, copies the 60k data and sends it in JSON to a Webhook that will register in PostgreSQL.
Using the API: The API performs all registrations asynchronously, the user sends it through an asynchronous request using JavaScript to the API and it takes care of the rest, which can break the API?
Which option do you think is better? Share ideas with me.
At the moment I'm waiting for ideas to execute.
Related
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 4 days ago.
Improve this question
I have been trying to fetch live video streams from the twitch website with requests, but it does not consider me as a viewer as it does with people watching streams on the browser. What i want to know is that do we have to send periodic requests to twitch database to make it consider us as a viewer. If yes then how can i send periodic requests what would be format of each request and what headers and payload/data would i have to send. I am very new to this so plz help me out.
I tried sending sync periodic requests but it didn't work with it.
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 6 days ago.
Improve this question
What I mean is let's say I have a totally functional and regular Django Web App. But then the client tells me they want a mobile client of the same app. So that means I should make an API, to get the data on the client.
Django Rest Framework is the way to make api with Django, but I don't know if I can add the api layer after making the regular Django App and leverage or take advantage of the existing logic I have previously created so the both web app and api can coexist.
Or if I should have started making the app with django rest framework from the begining.(Wich isnt convenient for me now).
What do you think? What are my options?
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
I want to make a sms service(sms API) on python I don't how can I make this to send sms to every where?
You can use SMS services as AWS SNS or as mention Twilio or many others actually, any of those are paid services. In order to build your own web service, first, you need to have the hardware to do it. As a basic recommendation, you can use raspberry pi and a GMS hat, code a python script to handle the ATT commands required to send SMSs, and then you can wrap everything with an awesome API using again, python, to create your cloud SMS sender API.
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 would like to create a Flask Python server to serve for a Mobile App / Web server as visualization for Data from PLC. I do not know how to connect Flask Server with another script and to exchange Data between it in full duplex. Is it possible to do it over Sqlite ? Can I write / read a data to the same DB from 2 scripts / servers ? I draw some explanation of my problem (first picture is a problem and a second one may be the possible solution ?/ thanks in advance for your experienced suggestions)enter image description here
Create apis in flask and use requests module from another script and consume the apis that are built on Flask.
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 6 years ago.
Improve this question
Are Airflow and Nifi perform the same job on workflows? What are the pro/con for each one?
I need to read some json files, add more custom metadata to it and put it in a Kafka queue to be processed. I was able to do it in Nifi. I am still working on Airflow. I am trying to choose the best workflow engine for my project
Thank you!
For a great overview of Airflow and Apache NiFi checkout this reddit post: https://www.reddit.com/r/bigdata/comments/51mgk6/comparing_airbnb_airflow_and_apache_nifi/
For your specific use-case of ingesting Json files, enriching them and routing them to Kafka I believe NiFi is the right tool for the job. A couple of processors you could potentially use, as well as documentation for each, are below:
GetFile: https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.9.2/org.apache.nifi.processors.standard.GetFile/index.html
JoltTransformJSON: https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.9.2/org.apache.nifi.processors.standard.JoltTransformJSON/index.html
PublishKafka (or PublishKafka_0_10 depending on your version): https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-kafka-0-9-nar/1.9.2/org.apache.nifi.processors.kafka.pubsub.PublishKafka/index.html