davidfowl/TodoApi

Question about Seq / ES + Kib

PureKrome opened this issue · 4 comments

Hi @davidfowl (and maybe @mehdihadeli ) - in #49 Serilog was added (yay!). What's the reason for also adding in Elaticsearch/Kibana?

Add Elasticsearch and Kibana for collecting logs

Is this in case the developer wishes to export the data to ES (and use Kib to search/review) instead of Seq? that's it? Because ES/Kib have hosted options around (think: a production release of TodoApi) but for localhost dev, use Seq? (I'm not suggesting this is the way to go .. but trying to see if this is the way suggested by this PR, etc).

Cheers!

(Context: i really like serilog and am thinking of posting an amendment PR, after raising a separate issue)

This is just a sample, you can use each of them that you prefer, and they are optional :)

@mehdihadeli yep - I totally get that. I'm wondering -> what's the use case for ES/KIB? why was it added? Just "because we can and heaps of people us that" (so that will get faster uptake with groking the repo, etc)

or

if XXX then ES/KIB is a popular example. While YYY then Seq is another popular example ... and fill in the blanks for XXX and YYY

It is completely tradeoff and based on features in seq and kibana. We can choose which one is better for our production, as I mentioned it is up to you :) also seq is not free for commercial use, and we should consider this. I personally prefer kibana because searching in kibana for me is easier, maybe for other ones seq is better. In real-world applications, You should use one of these because using both of them has a performance impact.

Ah ok - perfect :) So it's just a personal choice based on whatever floats your boat. kewl. Not hating at all - just learning. cheers!