Create a conclusion to summarize and outline relevant future work based on the…
- User
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Create a conclusion to summarize and outline relevant future work based on the discussions and reflections. (approx. 0.5 page)
\section{Discussion} Our project successfully implements a solution for ingesting, processing and visualizing real time data. The system lives up to many of our functional and non function requirements like showing a choropleth map for where trips are taking place in NYC. As well as averages for the amount of tips made the last hour and the average distance traveled. We tested the non functional requirements for throughput and requests per second which were tested and verified. A fun introspection is that the test stopped because the ingestion script was too slow and not because our system was having issues. A new ingestion script could have been made in a another language than python to improve the ingestion performance. I believe the suggested architecture goes over a lot of key aspects that must be considered when implementing a big data system. We discussed client-server and event driven architecture. Where the event driven architecture was chosen because of it's ability to loosely couple systems together and let micro-services grow independently. Avro was chosen as the preferred data format. Another option is Protocol buffers, which have many of the same benefits in regards to compression. But protocol buffers have libraries to compile their schemas into classes and struct depending on which language you're using. To me this is a really nice inclusion as it allows for a typesafe transfer of messages between services and languages. It would be nice to try it our for a future project. \ \ \noindent The choice of Redpanda was nice at the beginning because it is an easy to deploy fault tolerant Kafka cluster that that requires less hardware requirements to deploy. Working with Redpanda in an actual system showed some of it's downsides. The first issue occurred when we tried to deploy Kafka Connect as a part of the Redpanda deployment using their docs. Doing so would cause an error. We ended up creating an \href{https://github.com/redpanda-data/helm-charts/issues/877}{issue} in their GitHub repository where the fix would be implemented for their next release. Then we encountered issues with Redpanda having problems when being deleted from the cluster. This made it increasingly difficult to test other solutions like Apache Spark and Hive which both required lots of resources. During the design section we should have considered factors like maturity of the service, where choosing Kafka would be a more safe choice in regards to potential issues. \ \ \noindent I believe the choice of server rendering the frontend makes a lot of sense for our use case, but there are a few places where we could have improved the system. The main part would be in regards to how the choropleth map is updated. Our proposed solution will send down the choropleth map every 5 seconds, and will in many cases be unnecessary as most of the values are the same. We actually tried only sending the parts of the svg that changed using Sever sent events like what we do for the average values and count. But the svg would not update with the correct color values when the path elements were replaced. We believe that remounting the svg element could fix this issue when an element is replaced. Onether issue we ran into was in regards to ElysiaJs. ElysiaJs uses Bun as its javascript runtime instead of Node, while claiming a full compatability with Node. This turned out not to be completely true, when errors occurred when useing Avsc, a popular Avro serializer/deserializer javacript library. The library used some dependencies from Node which were not covered in the Bun runtime. To fix our issue we had the following choices. We could either implement our own code for deserializing Avro and use it in our code, we could use another backend framework or we could use Json for this part of the code. We went with using Json for this part of the code as it would be the easiest to implement. For future project i think the we should make more considerations about the maturity of a service to avoid unforseen error and incompatabilities. \ \ \noindent I believe the proposed architecture has the potential to live up to the projects requirements. The implemented architecture showcased that the real time part of the system is able to meet our requirement by sending and processing 1.59 MB/s and 4866 req/s. We believe the that the historical part of our software architecture is theoretically possible, but a more through exploration of it's feasibility could be given in our analysis section of the project report to give a clearer answer.
\section{Reflection} The historical part of our system does not follow the suggested architecture. We instead decided to implement TimescaleDB as a data store that can compress time series data, do continues aggregations and query with a sql syntax. The continues aggregations allows the computations to be linearly scaleable and is therefore a good consideration for our system, the main downside is that TimescaleDB is based on Postgresql and is therefore harder to scale compared to HDFS. For the future i would like to analyse the hardware requirements of services when considering the software architecture and to choose software services. If we chose to use TimescaleDB from the beginning we could have saved a lot of hard work trying to deploy HDFS and Apache Spark. When it comes to the real world of implementing solutions, there are places where it is okay to cut corners and this is one of those times. \ \ \noindent The fault tolerance of our system was only tested in regards to the Redpanda cluster and not the all other services. The other services could become fault tolerant by increasing the replication count. ElysiaJs would also require a load balancer to equally distribute the load between the backend service, but also to make sure that if a service were to fail another service could take over. One way to test the fault tolerance of the entire system is by using a chaos test. This type of test will randomly take down services to ensure the system as a whole is able fault tolerant. For future project i would like to create a fully fault tolerant system that complies with these tests to achieve an enterprise grade system.
Our project successfully implemented a solution for ingesting, processing, and visualizing real-time data, meeting many of our functional and non-functional requirements. The chosen architecture addressed scalability, fault tolerance, and message queuing.
For future work, we aim to explore the feasibility of the historical data pipeline further, considering factors like data volume and hardware requirements. We also plan to improve the real-time pipeline's efficiency by optimizing ingestion performance and exploring alternative data formats like Protocol Buffers.
To enhance fault tolerance, we will increase replication counts for various services and implement a load balancer for ElysiaJs. Chaos testing will be conducted to assess the system's overall resilience.
Additionally, we will investigate the use of a more mature Kafka cluster, such as Apache Kafka, to mitigate potential issues encountered with Redpanda.
These enhancements will contribute to a more robust, scalable, and fault-tolerant system capable of handling large volumes of real-time and historical data.
Make the conclusion shorter by only including the most important aspects
Our project successfully implemented a real-time data ingestion, processing, and visualization system. The chosen architecture addressed scalability, fault tolerance, and message queuing.
For future work, we aim to:
These enhancements will contribute to a more robust, scalable, and fault-tolerant system capable of handling large volumes of real-time and historical data.