Is there any use for Flex + Python/Ruby without a web framework (Django/Rails)? [closed]

I often hear about Flex being combined with web frameworks on the backend. The idea being that Flex serves as the presentation framework while the web framework (Django/Rails) does the database lookups and sends the data to Flex to present in the form of XML.

However, is there ever a situation where Flex and Python/Ruby would be combined without a web framework as an intermediary? Under what circumstances might such a combination make sense (if any)?

(I'm trying to think of projects where the functionality of a scripting language would be complementary with the functionality of Flex - but also whether it's possible for the two to be combined without too much high jinx).

Asked by: Vivian748 | Posted: 06-12-2021

Answer 1

You can still code against WSGI directly in Python. If that's the route you want to go, PEP 333 is about the only way to go.

With that said, doing so is a good learning experience, but WSGI wasn't really intended to be used directly. You don't have to use a full-stack framework like Django if you don't want to. If you want something more light-weight, might I suggest CherryPy or They're a lot more light-weight than Django is.

There are other options aside from WSGI, but they'll pretty much all have about the same caveats. In other words, it can be done, but usually isn't recommended.

Answered by: Nicole978 | Posted: 07-01-2022

Answer 2

Flash player allows developers to open sockets to remote applications. It is feasible that you could create a Flex application that connected to a remote server and transferred binary or serialized data. This has the added benefit of supporting asynchronous communication, so such a thing might be practical for multiplayer games or chat clients.

Adobe develops an application for this purpose called Flash Media Server (Unless the name has changed).

There is also an open source project called Red5 with a similar feature set.

Finally, there are several libraries that enable serialization and transfer of flash objects between languages. Some examples are AMFPHP, and the much more advanced Flex Data Services

Answered by: Aida734 | Posted: 07-01-2022

Similar questions

Still can't find your answer? Check out these communities...

PySlackers | Full Stack Python | NHS Python | Pythonist Cafe | Hacker Earth | Discord Python