Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I am running a Django app on PythonAnywhere. Unfortunately, Celery is not supported (on PythonAnywhere). I would like to use another library like Celery that allows me to execute some process asynchronously (and, icing on the cake, which would also support task scheduling).
Have someone found a solution that is supported by PythonAnywhere?
Could you recommend a user-friendly library just for executing some processes asynchronously?
If you're using Django the easiest way is to setup an endpoint and calling it periodically using a webhook.
There are a lot of websites that let you set a web process that makes an HTTP call to your endpoint. Just to mention one: https://www.easycron.com.
Have in mind that this might not be the most secure and safe way (allways use HTTPS and define an authentication method to avoid unwanted executions from unwanted calls to your endpoint), but to use it depends on the need of having that feature and the effort of building it.
In Django, the job to be done will be defined in views.py.
Another choice, if you can run more than one process in PythonAnywhere, is to build another python script running apscheduler.
Check this example code.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I'm developing an embedded platform and need to provide mechanisms to control and maintain the platform (file upload/download/delete and triggering various actions).
I need to be able to use those functions from a program running on a host machine and also via a simple website hosted on the platform itself.
I've never done this before and am wondering the best way to proceed, so looking for guidance as to what framework and system structure to use.
The platform is running Linux and all other services running on it are written in C/C++, so sticking to C++ seems like a good idea as it simplifies maintenance (no need to learn a new language, anyone in the team can use C++).
I do not want to consume too much CPU/RAM running frameworks, so a compiled language seems appropriate. I do not want to run Java for example.
I'm thinking to use lighttpd to host the website and Microsoft's cpprestsdk to implement the microservice in C++.
The benefit of cpprestsdk is that it's a C++ framework, implementing an HTTP server and with support for JSON. So it looks fairly straight-forward to use it to implement the micro-service.
The drawback of using lighttpd and cpprestsdk is that I have two HTTP servers running on the machine, which seems like a waste of resources.
Would I be better off using CGI with lighttpd to implement my micro-service?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
My company was running an internal Exchange server. We had an internal windows service that would poll a particular mailbox to read some data and store attachments from those email messages as part of a back end process.
Last week we moved our mail service to Office365 in the cloud, and the aforementioned service has now started failing.
The current code is wired to use the old Exchange.asmx services (https://msdn.microsoft.com/en-us/library/53553207-ff98-4fdb-8716-4ae02fee83bf(v=exchg.140)), so essentially it's talking to https://mail.mycompany.com/ews/exchange.asmx
With Office365, I see that there are now RESTful API's and the like - https://msdn.microsoft.com/office/office365/HowTo/office-365-unified-api-overview Are there any "legacy" API's available? I know RESTful is the way to go, but rather than re-engineer this thing, I'm hoping I can find the .asmx equivalent today to get this up and running, since the current code uses the Microsoft.Exchange.WebServices namespace.
Thanks
Yes EWS will work fine in Exchange Online see https://msdn.microsoft.com/en-us/library/office/jj162981.aspx you can just use the endpoint https://outlook.office365.com/ews/exchange.asmx or use Autodiscover (which will return that endpoint anyway).
Cheers
Glen
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I've been looking for a C/C++ interface to S3 and DynamoDB. I've found libaws on sourceforge that supports S3 but not dynamodb, but doesn't look like its maintained. Any pointers?
I just came to the same crossroads myself. Unfortunately I couldn't find any reliable libraries so I'm writing it myself using POST as described:
http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/MakingHTTPRequests.html
I set up a persistent, non-blocking socket connection with AWS. I POST with send(...) and listen for responses on the AWS socket using libev, sending the client's socket to the callback so I can respond directly to users from the callback. This replicates the non-blocking calls that some of the official SDKs use, like the one for Node.js.
If you want more clarification, feel free to e-mail me: chris specificsymbol rockingdayo punctuation com
For S3, there is libaws. You can also try and get the source code for WebStor, (link in the blog post), but I haven't tried that one.
DynamoDB will be tougher, as it is a newer service. Best bet is to follow Chris' suggestion and make the REST calls yourself.
Here is a recently released AWS DynamoDB library for C. It is still under active development. A previous (less feature-full) version of this has been used in a production environment for over a year.
https://github.com/devicescape/aws_dynamo
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
A few months ago I visited an interesting web site. It was a web to create data models (online) and web services (rest or soap) and deploy them at the moment, all without coding any server or SQL.
I think it's interesting for creating prototypes when I create iOS apps, as many of them are just web service consumers.
The problem is that I forgot the name of the website.
Do you know that website or similar services?
Thanks.
You're probably talking about https://parse.com/, they are really doing a great job, iterating really fast. I used them in the past and I would go with Parse anytime before Stackmob.
Stackmob is one such service that allows you to create models on their servers easily.
https://www.stackmob.com/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have been looking for a C++ Web Framework that would allow me to build a GUI Control Panel directly into a .dll plugin. In the past I have used Nancy Framework for .NET Projects which was exceptional (was my first time with this type of framework). I have found some good candidates based off of other Stack Overflow questions, however I am having trouble figuring out which, if any, have embedded web servers.
C++ Server Pages - This Looked Exceptional, but runs off of IIS or Apache.
CppCMS - Constantly recommended, but does it have an embedded server?
TreeFrog - Also recommended, but seems to have very broken documentation?
Which one of these would be recommended for a completely embedded solution? Ease of use would also be a huge plus, but I am willing to take the time to get it working provided it does what is needed. Thanks!
cppcms has an embedded server and is very well supported in embedded solutions. The documentation is complete and the support is very good, so perchance the documentation is not enough, the developer is certain to help you through your problems.
Don't forget about Wt. It also comes with a built-in web server.
Both CppCMS and TreeFrog have a built-in web server.
Did you have a look at ffead-cpp, it has an embedded web server, apache module, host of features and can run on Windows-Cygwin/BSD/Linux/Solaris