Commit 03e28384 authored by mohammad.salama's avatar mohammad.salama

Messages IDs are GUID, Scheduling Added, Redis Stream Sizes are Maintained,...

Messages IDs are GUID, Scheduling Added, Redis Stream Sizes are Maintained, Error Messages Not Complete Yet
parent dd337c65
......@@ -109,6 +109,8 @@ namespace PriorityStream.Extractor
}
Writer.Writer.trimStream(stream, id);
if (!has_pending) id = ">";
return await Task.FromResult(id);
......
......@@ -12,6 +12,7 @@ namespace PriorityStream.Writer
{
private static string Provider = "SYR";
private static string Provider2 = "MTN";
private static int StreamMaxLength = 100000000;
private static IDatabase db = null;
......@@ -71,7 +72,17 @@ namespace PriorityStream.Writer
new NameValueEntry[]
{
new NameValueEntry("message", serializedMessage)
});
},
null,
StreamMaxLength,
true
);
/*var temp = await db.StreamAddAsync
(provider,
new NameValueEntry[]
{
new NameValueEntry("message", serializedMessage)
);*/
return await Task.FromResult(true);
}
......@@ -84,5 +95,10 @@ namespace PriorityStream.Writer
}
public static void trimStream(string stream , RedisValue id)
{
}
}
}
......@@ -18,6 +18,7 @@ namespace SchedulerNode.RedisQueuer
private static string MTN = "MTN";
private static int LEVELS = 6;
private static int StreamMaxLength = 100000000;
private static IDatabase db = null;
public static void init()
{
......@@ -88,7 +89,11 @@ namespace SchedulerNode.RedisQueuer
new NameValueEntry[]
{
new NameValueEntry("message", serializedMessage)
});
},
null,
StreamMaxLength,
true
);
Console.WriteLine("Done Sending to stream : " + streamName);
......
......@@ -14,6 +14,7 @@ namespace ScheduledMessagesHandler.RedisQueuer
private static string MTN = "MTN";
private static int LEVELS = 6;
private static int StreamMaxLength = 100000000;
private static IDatabase db = null;
public static void init()
......@@ -86,7 +87,10 @@ namespace ScheduledMessagesHandler.RedisQueuer
new NameValueEntry[]
{
new NameValueEntry("message", serializedMessage)
});
},
null,
StreamMaxLength,
true);
//Console.WriteLine("Done Sending to stream : " + streamName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment