What is thrift event base and how it's implemented? - asynchronous

I'm starting to use thrift but i couldn't find a good documentation about basic architecture of thrift. The only thing which i know is we have to queue events into eventBase. Can anyone explain more about Thrift EventBase?

Related

MassTransit Check if queue and exchange exist

I'm using dotnet with masstransit rabbitmq.
I was wondering if there's a way to check if a specific exchange and queue exist. I have 2 services that connect to the same rabbitmq and are started at the same time. One services does all of the queue/exchange setup; I want the 2nd service to do while loop check to see if the queue/exchange exist before proceeding.
I was trying to look at the documentation to see if I could find some examples, but could not locate any. Could someone point me in the right direction?
Thanks.
MassTransit does not generally support this type of coupling behavior, since it ends up linking the consuming service to the producing service. There are plenty of other solutions in MassTransit to support your needs, such as sending messages directly to a queue using queue:name as the destination address.
As such, there aren't any built-in methods to check queue/exchange existence in MassTransit.

Does the Qt MQTT package provide an easy way of writing my own broker?

I'm considering trying the MQTT implementation provided by Qt.
I've studied the documentation, the classes, the members of the classes, and the examples. Nowhere did I find anything indicating how to make my own broker.
All the examples, and all the classes and the available source code seem to be limited to creating a client. The examples use some online broker service to test this client.
So, does the Qt MQTT package provide an easy way of writing my own broker?
No, it is for clients. The overview pretty much says so
It enables applications to act as telemetry displays and devices to publish telemetry data.

Lwip client with RTOS

I was trying to write a code for client using lwip/tcp. I had problem with tcp_connect function, error 252. Then I found out I can't use it with FreeRTOS in its usual way. Can someone provide me a hint or if there is any, example for this?
Thanks,
Ana
The lwip has 3-level API:
Callback-style API or RAW API - when you allocate pcbs, uses callbacks for events. It API isn't thread-safe and haven't used with RTOS.
netconn API - thread-safe API which should be used with RTOS (opt NO_SYS=0). Most used as I know.
socket API - thread-safe API similar to BSD-Sockets which should used with RTOS (opt NO_SYS=0).
So with FreeRTOS you should use netconn API or socket API.
Please check first https://lwip.fandom.com/wiki/Netconn_API
For examples - please check your vendor of MCU examples. If it doesn't exist - check out examples from STM32 for example https://www.st.com/resource/en/user_manual/dm00103685-developing-applications-on-stm32cube-with-lwip-tcp-ip-stack-stmicroelectronics.pdf

Airflow should integrate with NiFi/StreamSets?

I know Airflow is called workflow manager, nifi dataflow manager, but what this means exactly? The best explanation so far was that nifi cares about data while airflow cares about tasks, but I don't quite get this definition, and I couldn't find any other good explanation/article/video that explains how to integrate this systems, if it is a good idea or is better to use each one in their own.
Also I was thinking if it is better StreamSets or NiFi, I think streamsets looks better in UI and monitor the data, but I heard that depends on the case, that nifi is better if I only ingest data, but again I can't find much information about this questions.
As you said, Airflow is a workflow manager. It means that it only tells other programs to run. It doesn't process data, but tells other to run.
NiFi and StreamSets on the other hand, process data, transform it, receive it and send it. That's why they are dataflow managers.

how would the different programs execute/call each other and exchange information

Java Servlet can be used as part of a hybrid solution (i.e. website using many different programming languages.) But how a hybrid solution would work, i.e. how would the different programs execute/call each other and exchange information?
Please don't use code to explain. Thank you very much!
There are many ways you can 'exchange data.' It all depends on the your application.
You could use XML to define your data, as many programming languages support digesting/serializing XML. You could also use JSON (more for javascript), or direct socket connection as mentioned above.
I have seen C# Client applications that write java byte code to send to server implemented in java. The answer depends on the specific details of your needs.
This can be done in many ways.
Java can call other languages that run in the JVM directly, or languages outside the JVM by using JNI.
Portions of such a system could also be running as separate processes with communication by methods such as web-services or sockets.

Resources