I want to provide access to it and let people import whatever tables they want from it. I have an SQLite database with about 13 "tables" represented as a file and stored in the WolframCloud with public permissions located at the following URL: Overhead to having a rich notebook interface, but the goal is to keep that overhead to a minimum. Regarding notebooks, they are not as fast as pure static HTML, but that gap is becoming smaller thanks to server-side rendering and also the upcoming "static rendering mode", where the notebook is only rendered using the server-generated "HTML cache" and individual cells become interactive as necessary (as opposed to live-rendering everything right away). In EPC, database access is entirely possible. ordinary cloud objects, CloudExpression or Data Drop (via DatabinAdd & co.) to persist data in the cloud, or you use some other data persistence service that's exposed via an HTTP API. That being said, it's notĪ file hosting service, so if that's what want (at a large scale), it might be better to use a CDN instead (or in addition).Īnother thing you might consider "missing" is direct database access in the public cloud. Deploying websites (perhaps with some server-side WL code to make things "live") is certainly one of the main use cases for the Wolfram Cloud. You can also host static files on the cloud, e.g. If you're used to templates (from PHP or so), XMLTemplate & co. The assumption is that you use the Wolfram Language for server-side programming, i.e. It's true that there is no PHP or other server-side "scripting" languages (at least in the "public" Wolfram Cloud you have more flexibility in a Wolfram Enterprise Private Cloud = EPC). Another interesting function might be GenerateHTTPResponse. Various features such as theĪre essentially higher-level constructs around that, but you could always fall back to bare-bones HTTP requests and responses if something's missing. In general, you have pretty low-level control over everything via HTTPRequestData and HTTPResponse. To answer the specific question about HTTP redirects: Use HTTPRedirect, e.g.
0 Comments
Leave a Reply. |