I’m working on a project where I need to connect a Flex frontend to a C# backend. The catch is, we’re limited to HTTP for communication. No fancy custom sockets allowed!
I’ve used SOAP before, but I’m worried about how it’ll handle the heavy data load in this app. The XML overhead might slow things down too much.
What I’m looking for is something that’s easy to set up and can handle the data conversion smoothly. You know, like how BlazeDS works for Java. Is there anything similar for .NET?
I’d really appreciate any suggestions for a fast, efficient way to make this work. Thanks in advance for your help!
hey there! have u looked into SignalR? it’s pretty cool for real-time comms between Flex and C#. it uses websockets when available, but falls back to HTTP if needed. might be worth checking out! how big is ur data load, btw? curious about wat kinda performance ur aiming for
hey, have u tried using REST with JSON? its way simpler than SOAP and works great with HTTP. On the C# side, u can use WebAPI to set up endpoints easily. For Flex, there r libraries like as3httpclientlib that make HTTP requests a breeze. JSON’s lightweight too, so it shud handle ur data load better than XML. just my 2 cents!
Have you considered using gRPC for your Flex-C# communication? It’s a high-performance, language-agnostic RPC framework that works over HTTP/2. gRPC uses Protocol Buffers for serialization, which is much more efficient than XML or even JSON.
While it might require a bit more setup initially, gRPC offers significant performance benefits, especially for high-load applications. It supports bi-directional streaming and has excellent support for both .NET and ActionScript/Flex.
If gRPC seems too complex, you could also look into using REST with JSON payloads. It’s simpler to implement than SOAP and more efficient. You can use libraries like RestSharp on the C# side and as3corelib for JSON parsing in Flex to streamline the process.
Whichever method you choose, make sure to implement proper caching and compression to further optimize your data transfer.