Most active commenters
  • (10)
  • agentofreality(5)
  • CharlieDigital(4)
  • UltraSane(3)

320 points benocodes | 73 comments | | HN request time: 1.467s | source | bottom
1. ◴[] No.41896507[source]
2. gigatexal ◴[] No.41896553[source]
Oh this very much reminds me of [feldera](https://feldera.com) — they do incremental loads and computations using some novel approaches (most of which i am too dumb to follow). Really nice folks too.
replies(1): >>41896832 #
3. smarx007 ◴[] No.41896558[source]
https://azure.microsoft.com/en-us/blog/drasi-microsofts-newe...
4. ◴[] No.41896594[source]
5. CharlieDigital ◴[] No.41896683[source]
Very interesting choice of using Cypher[0]

In 2014, we built a similar type event-driven system (but specifically for document distribution (a document can be distributed to a target set of entities; if a new entity is added, we need to resolve which distributions match)) and also ended up using Cypher via Neo4j (because of the complex taxonomical structure of how we mapped entities).

It is a super underrated query language and while most of the queries could also be translated to relational SQL, Cypher's linear construction using WITH clauses is far, far easier to reason about, IMO.

EDIT: feel like the devs went overboard with the mix of languages. Shoehorned in C# Blazor? Using JS and Jest for e2e testing?

[0] https://drasi.io/reference/query-language/

replies(3): >>41896809 #>>41896856 #>>41896904 #
6. fatliverfreddy ◴[] No.41896705[source]
I wish I could use Cypher for everything
7. f4c39012 ◴[] No.41896724[source]
Purple!
replies(1): >>41896760 #
8. computronus ◴[] No.41896760[source]
Green!
replies(1): >>41897143 #
9. JanSt ◴[] No.41896809[source]
I too have great memories of cypher. Such an elegant way to write queries.
replies(1): >>41896869 #
10. woozyolliew ◴[] No.41896832[source]
Or the related Materialize stuff https://materialize.com/
replies(1): >>41898805 #
11. leeoniya ◴[] No.41896856[source]
> while most of the queries could also be translated to relational SQL, Cypher's linear construction using WITH clauses is far, far easier to reason about, IMO.

https://prql-lang.org/

replies(1): >>41896893 #
12. CharlieDigital ◴[] No.41896869{3}[source]
If you haven't been following it, I recently found out that it is now supported in a limited capacity by Google Spanner[0]. The openCypher initiative started a few years back and it looks like it's evolved into the (unfortunate moniker) GQL[1].

So it may be the case that we'll see more Cypher out in the wild.

[0] https://cloud.google.com/spanner/docs/graph/opencypher-refer...

[1] https://neo4j.com/blog/cypher-gql-world/

13. imvetri ◴[] No.41896886[source]
What does it process it from and what does it process it to?

Is it programmable or you have a concrete concept theorised?

What is it useful for? How it helps business in saving cost or increasing profit? Is it a hobby project?

14. CharlieDigital ◴[] No.41896893{3}[source]
Didn't look too deeply, but one of the keys with Cypher (at least in the context of graph databases) is that it has a nice way of representing `JOIN` operations as graph traversals.

    MATCH (p:Person)-[r]-(c:Company) RETURN p.Name, c.Name
Where `r` can represent any relationship (AKA `JOIN`) between the two collections `Person` and `Company` such as `WORKS_AT`, `EMPLOYED_BY`, `CONTRACTOR_FOR`, etc.

So I'd say that linear queries are one of the things I like about Cypher, but the clean abstraction of complex `JOIN` operations is another huge one.

replies(2): >>41896977 #>>41900273 #
15. robertlagrant ◴[] No.41896904[source]
We made a health backend partly using Cypher and the only thing I found was the simple queries looked amazing, but as soon as you need to join non-linearly it started looking a lot like SQL again. And when you're using an ORM it stops mattering. And when you need migrations it gets painful!
replies(2): >>41896929 #>>41896952 #
16. CharlieDigital ◴[] No.41896929{3}[source]

    > but as soon as you need to join non-linearly
At least in our use case, even with some very gnarly 20+ line Cypher queries, it never got to the point where it felt like SQL and certainly, those same queries would be even gnarlier as nested sub-selects, CTEs, or recursive selects, IMO.

Perhaps a characteristic of our model (a taxonomy of Region, Country, Sponsor, Program, Trial, Site, Staff for global clinical trials and documents required by Region/Country/Program/Trial).

replies(1): >>41896956 #
17. UltraSane ◴[] No.41896952{3}[source]
"you need to join non-linearly "

What does this mean?

replies(1): >>41906248 #
18. UltraSane ◴[] No.41896956{4}[source]
Cypher works really well with a well defined taxonomy.
19. UltraSane ◴[] No.41896977{4}[source]
The neat thing about Neo4j is that the [r] isn't a join, it is an actual relationship stored on disk.
replies(1): >>41906950 #
20. otterley ◴[] No.41897080[source]
Looks very Azure-centric. Both installation guides (https://drasi.io/how-to-guides/install-sample-applications/b... and https://drasi.io/how-to-guides/install-sample-applications/c...) require Azure to work.

And then there's this:

> Installing Drasi in an EKS cluster can be significantly more complex than a standard installation on other platforms. Instead of downloading a CLI binary using the provided installation scripts, this approach requires modifying the source code of the Drasi CLI and building a local version of the CLI.

Is this an actual requirement or just the current easy path?

replies(7): >>41897227 #>>41897293 #>>41897541 #>>41897811 #>>41897940 #>>41901203 #>>41909560 #
21. JaimeThompson ◴[] No.41897143{3}[source]
Just my luck. I get stuck with a race that speaks only in macros.
22. sitkack ◴[] No.41897207[source]
But at what cost?
23. dtquad ◴[] No.41897227[source]
That is usual for new Microsoft open source projects. It takes 1-2 months for the Azure dependencies to go away.
replies(1): >>41900118 #
24. pjmlp ◴[] No.41897293[source]
Azure is the new Windows, as timesharing OS, thus yeah that is to be expected.
25. stefanos82 ◴[] No.41897354[source]
Drasi...React...well played Microsoft, well played :D

Assuming they choose this name from the Greek δράση which means action, React of course is the exact opposite to action, thus the React-ion; an action expects a reaction, somewhere somehow!

replies(2): >>41897611 #>>41908578 #
26. jameslevy ◴[] No.41897541[source]
Does it require Azure to work? Or could the Azure steps be relatively easily be swapped out for AWS/GCP/etc?
replies(1): >>41910058 #
27. benbristow ◴[] No.41897611[source]
Not like Microsoft to name things well...
replies(1): >>41897647 #
28. j-a-a-p ◴[] No.41897647{3}[source]
VMS++ = Windows NT?
29. stackskipton ◴[] No.41897811[source]
Azure SRE here, it doesn't appear to have any Azure dependencies. CLI rebuild seems to be that "drasi init" assumes Azure Kubernetes Service built in StorageClasses for Kubernetes PVC for Redis and Mongo and thus fails when running against EKS. I assume same thing would be required on GKE. Yes, it should be more modular but MVP.

As for other stuff, it's using Gremlin Query Language or Postgres which are both open. In fact, it's going out of way it's not to use Azure authenication as loading connection string as Kubernetes secret is 100% AGAINST Azure Kubernetes Best Practice. Best Practice would be Workload Identity.

replies(2): >>41899666 #>>41901190 #
30. ◴[] No.41897940[source]
31. hobofan ◴[] No.41898805{3}[source]
I took a brief look into Drasi and it looks like it doesn't do any of the differential/timely dataflow stuff (like Materialize does), or any other sophisticated incremental view maintenance methods that are rooted in Microsoft Research.
32. resters ◴[] No.41899313[source]
This is a very solid pattern. Many systems that are built using traditional relational database systems would lend themselves to far simpler designs using this paradigm. It is not necessarily immediately obvious but nonetheless quite true.
replies(1): >>41899932 #
33. SiddanthEmani ◴[] No.41899370[source]
Cypher is so cool. I included a graph database in my RAG patient chatbot

https://github.com/SiddanthEmani/patient_chatbot

34. bob1029 ◴[] No.41899666{3}[source]
> CLI rebuild seems to be that "drasi init" assumes Azure Kubernetes Service built in StorageClasses for Kubernetes PVC for Redis and Mongo and thus fails when running against EKS. I assume same thing would be required on GKE. Yes, it should be more modular but MVP.

None of these words are in the Bible.

35. unit149 ◴[] No.41899932[source]
Beginning with Boolean operators: and / or - this relational service model can distribute queries. Curious why Cypher [0] abandons this syntax.
36. akmittal ◴[] No.41900021[source]
Go seem to be good choice for data processing systems.
37. 3abiton ◴[] No.41900118{3}[source]
I'm curious about the other examples? I get it though, as many of these projects are built fulfilling a specific need within MS infrastructure.
38. inkyoto ◴[] No.41900273{4}[source]
> […] Where `r` can represent any relationship […]

… and «-[r]-» can represent any relationship direction, which obviates the need for constructing separate queries for inverse traversing relationships. Kinda like running a compiler forward and backward.

39. dxxvi ◴[] No.41900470[source]
Is this what can be done with Apache Kafka Connect (to get data from another source to a Kafka cluster), Kafka (including Kafka Streams)? This image (https://github.com/drasi-project/community/raw/main/images/d...) is like Kafka Streams with a single topic. This image (https://github.com/drasi-project/community/raw/main/images/c...) is like joining 2 streams in Kafka Streams.
replies(1): >>41904129 #
40. fatliverfreddy ◴[] No.41900557[source]
I see more Cypher fans out here - check out https://cyphernet.es if you work with Kubernetes!
replies(1): >>41902567 #
41. mnsc ◴[] No.41900834[source]
I finished reading Kleppman's Designing Data-Intensive Applications last night and this looks like it's straight out of the last chapter that talk about the future. They don't use the term "dataflow" though.

https://www.oreilly.com/library/view/designing-data-intensiv...

replies(3): >>41901050 #>>41902746 #>>41903480 #
42. 9dev ◴[] No.41901050[source]
That one’s also on my reading list. Was it worth the read?
replies(2): >>41901076 #>>41901969 #
43. yas_hmaheshwari ◴[] No.41901076{3}[source]
This book is definitely worth the read. Or maybe worth 10 reads. Its really that awesome!
44. ◴[] No.41901190{3}[source]
45. devjab ◴[] No.41901203[source]
Every bit of Microsoft open source is created at least partly as a sales strategy for Azure. They usually start within the Azure infrastructure because, well, why wouldn’t they? Then eventually they tend make it to where you can use them outside of Azure but they never quite leave the part where they are “better” if you’re an Azure customer.

Time will tell if Drasi is going to go the path where it becomes more easily useable outside of Azure (and in this case AWS) or it’ll go more of a Bicep route.

replies(1): >>41910000 #
46. iamstan23 ◴[] No.41901685[source]
Weird thing about this project is that neither the website (https://drasi.io) or the repo (https://github.com/drasi-project/drasi-platform) mention that it's a Microsoft project.

Also the only cloud provider it has installation instructions for is AWS's EKS platform. Yet it has integration instructions for Azure CosmosDb Gremlin API.

That one customer out there using EKS and Gremlin on CosmosDb is probably over the moon right now.

replies(4): >>41903040 #>>41903284 #>>41903472 #>>41910956 #
47. unixhero ◴[] No.41901719[source]
I would really enjoy using it. But as a novice data intensive application developer, why would I not query the table 30 seconds and look for changes with a Python program (or another regular programming language)?
replies(1): >>41901778 #
48. bobnamob ◴[] No.41901778[source]
One of the best resources to understand "why would I not ... ?" in a data intensive context is Kleppmann's Designing Data-Intensive Applications[1] (mentioned elsewhere in the comments). There's a lot of nuance to why event streaming wins out over periodically "polling" a database, mostly about maintaining correctness while being able to scale horizontally.

Taking a look at the Kafka docs [2] is also enlightening.

[1] https://www.amazon.com/Designing-Data-Intensive-Applications...

[2] https://kafka.apache.org/documentation/#gettingStarted

49. xnorswap ◴[] No.41901969{3}[source]
I read it over the summer and I'd say it's essential reading for any developer who deals with data.

Perhaps most importantly, the book empowered me to talk confidently about the trade-offs involved with different choices of handling data, and gave me a language framework to talk accurately about those choices.

Previously even the parts I did understand was from experience, and not an academic background, so my explanations were hand-wavy or sloppy, but now I can state my case for different solutions much more clearly.

50. jeremycarter ◴[] No.41902567[source]
Brilliant
51. ◴[] No.41903040[source]
52. vladsanchez ◴[] No.41903284[source]
https://azure.microsoft.com/en-us/blog/drasi-microsofts-newe...

> "The Microsoft Azure Incubations team is excited to announce that Drasi is now available as an open-source project."

53. ◴[] No.41903472[source]
54. ◴[] No.41903478{3}[source]
55. ◴[] No.41903480[source]
56. ◴[] No.41903484[source]
57. ◴[] No.41903490[source]
58. ultrafez ◴[] No.41904129[source]
It also seems reminiscent of KSQL - consuming multiple input topics, and producing output to a topic defined using a query written in a SQL-like language that defines how the inputs are combined and filtered.
59. lasermike026 ◴[] No.41904211[source]
I suppose students need to prepare to defend what they are writing. Also, teachers may need a bit of a demotion when making accusations of plagiarism or generated papers. Teachers at the very least should be able to reasonably prove their accusations. There is a greater problem with tutors writing students papers. If teachers and students worked more closely this wouldn't be an issue.
replies(1): >>41904623 #
60. dijksterhuis ◴[] No.41904623[source]
i feel like this comment was maybe supposed to be posted under this article?

https://news.ycombinator.com/item?id=41896973

61. emmanueloga_ ◴[] No.41904661[source]
They don't mention "CDC" (Change Data Capture) directly anywhere, but I think that's what Drasi is? (they call it "Data Change Processing platform").

"Debezium", an alternative CDC system, is mentioned in the documentation and sources [1]. I'm not sure if Drasi uses Debezium, or aims to be compatible with it. Maybe someone here can shine more light on the relationship between these two?

--

1: https://github.com/drasi-project/drasi-platform/tree/main/re...

replies(1): >>41910887 #
62. purpleidea ◴[] No.41906196[source]
This feels like a specialized version of https://github.com/purpleidea/mgmt/ but Microsoft only.
63. FromOmelas ◴[] No.41906248{4}[source]
presumably it has a semantic model of sorts, defining intrinsic relationships between entities (parent-child, composed-of, sibling-of, and so on)

A bit similar how certain joins in SQL can be very straightforward with the "USING" clause, or when it can rely on extra information such as analytic views to derive materialized views (vendor specific)

64. refset ◴[] No.41906950{5}[source]
Like a many-to-many join table?
replies(1): >>41908469 #
65. TeMPOraL ◴[] No.41908578[source]
Here I thought they were accidentally or intentionally referring to:

https://babylon5.fandom.com/wiki/Drazi

But now I noticed the spelling difference :/.

66. agentofreality ◴[] No.41909560[source]
I am the Drasi engineering lead and can assure you that any Azure-centricity is purely one of historical convenience and a lag in getting more of our non-Azure-centric doc, samples, and components published.

The main current dependency is having a K8s cluster.

You can run Drasi for dev/test on k3s(https://drasi.io/how-to-guides/installation/install-on-k3s/) or kind(https://drasi.io/how-to-guides/installation/install-on-kind/) and docker desktop also works but is undocumented.

Cloud based options include AKS (we will release the instructions soon) and EKS as mentioned. When we tested on EKS, we hit some storage class issues and decided to publish this with some work-arounds instead of holding back until we do a proper fix, which we will prioritize if there is demand.

On prem K8s should also work, but we haven't put resources into testing those scenarios. We would love to engage with anybody that would be willing to try this out.

Also, in the future we are thinking about other delivery platforms, not just K8S. You will see in the code that our dependency on k8s is abstracted.

If you have any questions, the Drasi Team is most active over on our discord channel (https://aka.ms/drasidiscord) and we would love to answer your questions and help ypu get started using Drasi.

67. agentofreality ◴[] No.41910000{3}[source]
As mentioned above, Kubernetes is (intended to be) our only platform dependency right now. Drasi is not yet ready for production use and can be explored using k3s, kind, AKS, and EKS, which we felt provided sufficient initial options for people to choose from.

In the coming weeks we will get more of our Sources and Reactions documented as well as docs on how to create custom Sources and Reactions. In the short term, if people have Sources and Reactions they want so they can integrate with a wider range of up and downstream systems, we would love to help support their efforts in developing these.

The Drasi Team is most active over on discord channel (https://aka.ms/drasidiscord), where we are happy to answer questions and help people get started using Drasi.

68. agentofreality ◴[] No.41910058{3}[source]
Drasi does not require Azure to work. You install Drasi on a Kubernetes cluster, configure a Drasi Source to connect to a supported database, write Continuous Queries in Cypher Query Language, and configure a Drasi Reaction to do something with the output of the Continuous Query. For K8S, you can currently use k3s, kind, AKS (docs coming soon), or EKS (requires some work arounds).

Drasi docs are here - https://drasi.io/

The Drasi Team is most active over on discord, where we are happy to answer questions and help get people started using Drasi (https://aka.ms/drasidiscord)

69. agentofreality ◴[] No.41910887[source]
Hi, I am the Drasi engineering manager, maybe I can clarify. Drasi is not intended to be another CDC alternative. It doesn't compete with Debezium, in fact we already have some integration with Debezium and hope to do more in the future.

People often use CDC to replicate, consolidate, filter, and transform data. And sometimes they use it as a source of change events to build components/services that look for specific data changes and do something when they detect those changes. This kind of components/services tend to be more complex to build, operate, and maintain than expected. Especially if they bring together data from multiple sources, have complex criteria, need to react in near real-time, be secure, and resilient. Most people that have had to build these can probably agree that they would like it to be less complex.

Drasi was created so people don't have to build this kind of component/service. They just write a Continuous Query (in Cypher), and then configure it to connect to supported Data Sources and Reactions (which do something when changes are detected).

Drasi manages the connection to the Source systems to get the low-level changes when they occur (sometimes using the Debezium library), maintains a perpetually accurate result set for the Continuous Query, and every time a source change results in a change to the Continuous Query result, Drasi generates a diff and sends it to the set of subscribed Reactions. The Reactions do something with those diffs depending on their purpose e.g. update a database, post an event, send an email, send a text message. All of this with no code in a platform that can scale to support many such queries.

There is more to it, but a good starting point is if you ever think to yourself that you want to query a database and then compare the results to a previous query result, and you want to do this periodically, you might consider Drasi as an alternative.

The Drasi Team is most active over on our discord channel(https://aka.ms/drasidiscord) and we would be happy to answer questions and help you evaluate whether Drasi is something that might be useful to you.

replies(2): >>41910977 #>>41911569 #
70. agentofreality ◴[] No.41910956[source]
I am the Drasi engineering manager, and I can assure you that any weirdness you sense is purely accidental.

The project was announced through standard Microsoft channels by Mark Russinovich and is part of the Microsoft Collaboration on GitHub. But we are predominantly an open source project from the Azure Incubations team which has a history of releasing open source projects. So we don't feel the need to constantly remind everybody that we are a Microsoft project and team.

The documentation site is missing some content that wasn't ready in time for the release but it includes AKS install instructions as well as additional Source and Reaction docs. These will be out soon.

If you know that customer that uses EKS and Cosmos Gremlin, please let us know, we would also be over the moon.

In any case, the Drasi Team is most active over on our discord channel(https://aka.ms/drasidiscord) where we would love to answer any questions you have about Drasi and help you get up and running.

71. emmanueloga_ ◴[] No.41910977{3}[source]
Thank you for this answer! It makes more sense now that you don’t call Drasi a CDC, I think it could be useful to clarify the distinction in the docs (perhaps also comparing and contrasting with other systems that appear to be closely related, like streaming databases).
72. robertpohl ◴[] No.41911569{3}[source]
Put this in your website! I understand now :)