Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Development
SSH-WEB
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Jepzter" data-source="post: 435864" data-attributes="member: 81100"><p>So I guess it's not time to post an update really, but I will do it anyway even though its small. So the bug with eventlisteners freezing the application (single-thread applications sucks) is now fixed with RxJava. There is now an email module aswell, might not be so important maybe but its there and its super easy to use. A nice way to use the email function would be to listen on events like "user-registered-v1" and on that event send an email notification to the user with the text, "Welcome"!</p><p></p><p>The development I start with now is monitoring the application with elasticsearch, while I think of this I will probably make so that either it will log automagically on thrown exceptions or, I will create a special exception type for that to gather all information, and send it away. The coolest way would be the framework listening to all kinds of event, but im not sure thats v1. Some of you may wonder, why would we setup a elasticsearch server with either kibana or Grafana.</p><p>Well, firstly, you can monitor your application live, from any web browser, and see graphs of what ever you want to monitor on.</p><p>Secondly if you were to host, ugh lets just take a horrible example of a habbo retro, which produces alot of information in logs, you might miss stuff in the console, and having a hard time to find something that really diff from the normal behaviour, well now thats all handled and you see al strange things instantly, without being on the server.</p><p></p><p>The full RxJava part will come after this, why I want to wait with this is because Im not sure how I should do it yet, after that's finished I can keep on putting the last pieces of the MVP for SSH-WEB together, as it has all it needs to fully function.</p><p>[doublepost=1530212212,1529506636][/doublepost]No further updates now util the beginning of August, due to semester break from the real job and as well with this. <img src="/styles/default/xenforo/smilies/emojione/smile.png" class="smilie" loading="lazy" alt=":)" title="Smile :)" data-shortname=":)" /></p><p>Have a great semester everyone!</p><p>[doublepost=1534592867][/doublepost]Just started development again, still working on the framework and probably will for a week as I plan to use it in other projects as well. I let you know when the kafka is 100% done. <img src="/styles/default/xenforo/smilies/emojione/smile.png" class="smilie" loading="lazy" alt=":)" title="Smile :)" data-shortname=":)" /> When it's done I will also release parts of it here.</p><p>[doublepost=1534619037][/doublepost]Kafka is already quite healty right now, it now takes in your POJO by extending the EventHandler. This all works with Jackson doing the magic in the background transforming the POJO to JSON and back. This also means that you just send the object in the eventPublisher. This is a <strong>GREAT</strong> way of building microservices and event driven designs.</p><p></p><p><strong>EventConsumer</strong></p><p>[CODE]public class KafkaTest extends EventHandler<User> {</p><p> </p><p> @Override</p><p> @EventConsumer(topic = "user-login-v1")</p><p> public void handle(User event) {</p><p> event.getUsername();</p><p> }</p><p>}[/CODE]</p><p></p><p><strong>EventPublisher</strong></p><p>[CODE]User user = new User("TheOvster@devbest.com", "TheOvster");</p><p>EventPublisher.sendEvent("user-login-v1", user);</p><p>[/CODE]</p><p></p><p><a href="https://i.gyazo.com/a00b65de647ebee7e655320004591c0d.mp4" target="_blank">https://i.gyazo.com/a00b65de647ebee7e655320004591c0d.mp4</a></p><p></p><p>Actual kafka working.</p><p></p><p>the framework now comes with handling mail, you just add your email config to your YML.</p><p></p><p>The framework will also come with PDF generation, this is to make invoices, recipe and other stuff. Why you may wonder, well this framework is aimed for enterprise development, so I hope this come in handy. I update you all on this. I will make the project open source when the code has been refactored. We all know how the code looks when you try stuff the first times. Then the development of the main project will continue</p></blockquote><p></p>
[QUOTE="Jepzter, post: 435864, member: 81100"] So I guess it's not time to post an update really, but I will do it anyway even though its small. So the bug with eventlisteners freezing the application (single-thread applications sucks) is now fixed with RxJava. There is now an email module aswell, might not be so important maybe but its there and its super easy to use. A nice way to use the email function would be to listen on events like "user-registered-v1" and on that event send an email notification to the user with the text, "Welcome"! The development I start with now is monitoring the application with elasticsearch, while I think of this I will probably make so that either it will log automagically on thrown exceptions or, I will create a special exception type for that to gather all information, and send it away. The coolest way would be the framework listening to all kinds of event, but im not sure thats v1. Some of you may wonder, why would we setup a elasticsearch server with either kibana or Grafana. Well, firstly, you can monitor your application live, from any web browser, and see graphs of what ever you want to monitor on. Secondly if you were to host, ugh lets just take a horrible example of a habbo retro, which produces alot of information in logs, you might miss stuff in the console, and having a hard time to find something that really diff from the normal behaviour, well now thats all handled and you see al strange things instantly, without being on the server. The full RxJava part will come after this, why I want to wait with this is because Im not sure how I should do it yet, after that's finished I can keep on putting the last pieces of the MVP for SSH-WEB together, as it has all it needs to fully function. [doublepost=1530212212,1529506636][/doublepost]No further updates now util the beginning of August, due to semester break from the real job and as well with this. :) Have a great semester everyone! [doublepost=1534592867][/doublepost]Just started development again, still working on the framework and probably will for a week as I plan to use it in other projects as well. I let you know when the kafka is 100% done. :) When it's done I will also release parts of it here. [doublepost=1534619037][/doublepost]Kafka is already quite healty right now, it now takes in your POJO by extending the EventHandler. This all works with Jackson doing the magic in the background transforming the POJO to JSON and back. This also means that you just send the object in the eventPublisher. This is a [B]GREAT[/B] way of building microservices and event driven designs. [B]EventConsumer[/B] [CODE]public class KafkaTest extends EventHandler<User> { @Override @EventConsumer(topic = "user-login-v1") public void handle(User event) { event.getUsername(); } }[/CODE] [B]EventPublisher[/B] [CODE]User user = new User("TheOvster@devbest.com", "TheOvster"); EventPublisher.sendEvent("user-login-v1", user); [/CODE] [URL]https://i.gyazo.com/a00b65de647ebee7e655320004591c0d.mp4[/URL] Actual kafka working. the framework now comes with handling mail, you just add your email config to your YML. The framework will also come with PDF generation, this is to make invoices, recipe and other stuff. Why you may wonder, well this framework is aimed for enterprise development, so I hope this come in handy. I update you all on this. I will make the project open source when the code has been refactored. We all know how the code looks when you try stuff the first times. Then the development of the main project will continue [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Development
SSH-WEB
Top