Posts

JMS

  What is JMS ? JMS (Java Message Service) is an API which provides the facility to create, send and read messages between producer(producers) and client(clients). It provides loosely coupled, reliable and asynchronous communication. It is an implementation to handle the producer–consumer problem. JMS is a part of the Java Platform, Enterprise Edition (Java EE). JMS is also known as a messaging service. Elements Elements 01. JMS provider  - An implementation of the JMS interface for message-oriented middleware (MOM). Providers are implemented as either a Java JMS implementation or an adapter to a non-Java MOM. 02. JMS client  - An application or process that produces and/or receives messages. 03. JMS producer/publisher  - A JMS client that creates and sends messages. 04. JMS consumer/subscriber  - A JMS client that receives messages. 05. JMS message  - An object that contains the data being transferred between JMS clients. 06. JMS queue  - A staging ar...

Introduction of need of messaging system.

Introduction of need of messaging system. Normally application වලදී request එකක් එනවා සහ  එම request එකට අදාලව  data process කරලා response එකක් දීම කරනු ලබනවා.මෙහිදී better user experience එකක් දෙන්න නම්  user ට ඉකමින් නිවැරදි response එකක් දීම අවශ්‍ය වෙනවා.එම නිසා response දෙන්න යන කාලය අඩුම කරගන්න වෙනවා. මේ සදහා data processing part එක ගැන අවධානය දෙන්න වෙනවා.Data processing part එකේදී යම් කොටසක් process වෙන්න සැලකියයුතු කාලයක් යනවනම් සහ එම කොටස individually execute කරගන්න විදිහට හදාගන්න පුලුවන්නම් (Non blocking, Asynchronous විදිහට) එම කොටස් asynchronous ලෙස background එකේ  run වීමට set කරලා response එක දීමට අදාළ ඉතුරු කොටස් process කරලා  response එක  දෙන්න ඕනේ(Example එකක් ලෙස order එකක් place  කරල  එය  process වෙද්දී ඒ order එකට අදාලව earn වෙන  loyalty points users ට order complete response එකත් එක්ක  ඒ වෙලාවේම කියන්න ඕනේ නැත්තම්, එම  points earn වෙන්න ඕනේ  logically part එක background එකේ   Asynchronous...

SSL - HTTPS, Topics.

Image
  SSL - HTTPS, Introduction. SSL - HTTPS, SSL Command. SSL - HTTPS, Project Creation.

01. SSL - HTTPS, Introduction.

Image
  HTTPS Different teams which we can to secure a web service. SSL- secure socket layer TSL- Transport secure layer (More features added than SSL, Lot of certificates are created using TLS)   TrustStore and KeyStore TrustStore - Certificate related to public information. KeyStore- Certificate related to private information.   HPPTS (Hypertext transfer protocol secure) යනු HTTP හි secure version එක වන අතර එහි secure කියන එක ලගා කරගනු ලබනුයේ data encrypted කර transfer කිරීම මගින් වේ (secure communication between two parties by using the encryption mechanism it has).   How Spring boot HTTPS works? HTTPS is used to make secure communication between two parties by using the encryption mechanism it has. In the case of SSL, it generates and HTTPS it generates an SSL certificate that contains the public and the private key, and other information which is needed to make it secure. Now we will see how HTTPs works internally to secure the transfer of d...

02.SSL - HTTPS, SSL Command.

Image
  SSL - HTTPS, SSL Command. REF:  https://docs.oracle.com/cd/E19830-01/819-4712/ablqw/index.html#:~:text=jks%2C%20contains%20the%20Application%20Server%27s%20trusted%20certificates%2C%20including%20public%20keys,of%20certification%20authorities%20(CAs). https://www.thomasvitale.com/https-spring-boot-ssl-certificate/ https://www.educba.com/spring-boot-https/ keystore of type JKS using an RSA key algorithm. RSA is public-key encryption technology developed by RSA Data Security, Inc keytool -genkey -noprompt -trustcacerts -keyalg RSA -alias ${cert.alias} -dname  ${dn.name} -keypass ${key.pass} -keystore ${keystore.file} -storepass ${keystore.pass} Create a self-signed certificate in a keystore of type JKS using the default key algorithm. keytool -genkey -noprompt -trustcacerts -alias ${cert.alias} -dname ${dn.name} -keypass ${key.pass} -keystore ${keystore.file} -storepass ${keystore.pass} Example: keytool -genkey -alias keyAlias -keyalg RSA -keypass changeit -storepass chan...

03. SSL - HTTPS, Project Creation.

Image
 SSL - HTTPS, Project Creation. GitHub link : https://github.com/LahiruPriyankara/SSL-SpringBoot Create a spring boot project by adding web dependencies Then create keypair Add it to project class path  Add bellow configuration and run the project.

TCP - topic

Image
  Topic 01. TCP - Three stages of TCP