Skip to content

Releases: Jet-Engine/callysto

v0.1.9

23 Oct 16:37
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.1.8...v0.1.9

v0.1.8

28 Jun 00:12
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.1.6...v0.1.8

v0.1.7

12 May 08:55
Compare
Choose a tag to compare

This release contains manual commit mechanism inside agents.

async fn manual_commit_counter_agent(mut stream: CStream, ctx: Context<SharedState>) -> Result<()> {
    while let Some(msg) = stream.next().await {
        let m = msg.unwrap();
        // Read the incoming bytes as string
        let strm = m.payload_view::<str>().unwrap().unwrap().to_owned();
        println!("Received payload: `{}`", strm);

        // Increment message counter and print it.
        // Show how you can store an application state.
        let state = ctx.state();
        let msgcount = state.value.fetch_add(1, Ordering::AcqRel);
        println!("Message count: `{}`", msgcount);

        // We are done here.
        ctx.commit_async(m).await?;
    }

    Ok(())
}

v0.1.6: Amalthea

29 Apr 11:14
Compare
Choose a tag to compare

This release contains PostgresSink can be used like:

stream
    .enumerate()
    .map(|(idx, m)| {
        m.map(|e| {
            let doc = SpotifyDocument::new(e.payload_view::<str>().unwrap().unwrap().into());
            println!("Processing document ID: {}", idx);

            let query = "INSERT INTO 
	                 spotify (song_url)
		         VALUES ($1)";

            CPostgresRow::new(query.into(), vec![doc.song_url])
        })
        .ok_or(CallystoError::GeneralError("No payload".into()))
    })
    .forward(
        CPostgresSink::new("postgres://testuser:testpassword@localhost/testdb", 4, 0).unwrap(),
    )
    .await?;

v0.1.5

14 Apr 08:27
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.1.4...v0.1.5

0.1.3: Titan

10 Apr 13:34
Compare
Choose a tag to compare

This release includes:

  • Agent (Kafka Streams consumer)
  • Table Agent (WAL backed distributed Agent)
  • Timers (scheduled tasks)
  • Task (single one-off tasks)
  • InMemory and Rocksdb backed storage.