SlideShare a Scribd company logo
Full-stack JavaScript based
micro-services for complete
automation of Higher Education
Institutions (HEIs)
Arun kumar Krishnamoorthy
Software Technologies
Thinking Big in JavaScript
Your Footer Here 2
• Increased
Tooling
across dev
life cycle
• Abundance
of
frameworks
across value
chain
 Richer Language
Features
 More reliable,
better
performing
server-side
middleware
2 Biggest Motivations of using
JavaScript across layers
10 Jan 2019 https://jsfoo.in/2019-pune/ 3
• Open
source for
life time
 One core
technology
across layers
Functions of Higher Education
Institution
10 Jan 2019 https://jsfoo.in/2019-pune/ 4
Admissions
Application
Ranking and
Selection
Admissions
Process
Students
Management
Profile
Life cycle
Student
Services
Curriculum
Design
Programmes
and Scheme
Detailed
Syllabus
Review and
Publish
Faculty and
Staff
Management
Profile
Faculty
Services
Performance
Reporting &
Awards
Functions of Higher Education
Institution
10 Jan 2019 https://jsfoo.in/2019-pune/ 5
Fees
Collection
Accounting
Structure
Fee
Components,
Structure
Fee Collection
and tracking
Academic
Administration
Calendar,
Workloads,
Attendance
Assessments,
Outcome
Attainment
Academic
Activities, IQAC
Examination
Enrollments,
Exam Fees
Exam Calendar,
Seating, Hall
ticket
Evaluation,
Outcome,
Results
Placements
Company
database
Placement
Schedule,
Student select
Interview
process, Status
tracker
Functions of Higher Education
Institution
10 Jan 2019 https://jsfoo.in/2019-pune/ 6
Events
Co-curricular
and Extra-
curricular
Agenda,
Gallery, Write-
up
Registrations,
ticketing
Grievance
/ Feedback
Authorities for
redressal
Logging and
tracking
Escalation
rules
Alumni
Alumni
Database
Periodic News
letter
Posts,
Collaboration
for a cause
Hostels
Requests and
Room
Allotments
Fees, Caution
Deposit, Mess
Bills
In-out tracker,
approval,
notifications
Functions of Higher Education
Institution
10 Jan 2019 https://jsfoo.in/2019-pune/ 7
Showcase
through a
dynamic,
engaging
Website
Awards
Events
Courses
Infra
Characteristics of the Problem
Domain
• Well-defined, well-managed and controlled functions
• Clear ownership of data
• Ex. Admissions, Students enrollments, Programme scheme
and syllabus
• Predictable peak, average workloads
• Ex. last date of applications, results announcements, last date
of fees payment, important news / events / announcements
• Inherent data partitions – Transactional in an academic
year, Analytical for historical data
• Deadlines are truly real and availability is very critical
• Ex: Exam dates, fees payment due date, reopening date
Your Date Here https://jsfoo.in/2019-pune/ 8
Architecture Drivers
• Schema less across layers to cater to varying needs
of different fields of Higher Education
• Loosely coupled across functions
• Scale-up / Scale-down independently
• Distributed deployment, cloud agnostic, hybrid
• Open source reducing Total Cost of Ownership
• Shallow learning curve and Rapid prototyping /
development
• Single-sign-on across functions
1/18/2019 https://jsfoo.in/2019-pune/ 9
Design Principles
• Single Responsibility Principle
• Inversion of Control (Dependency Injection)
• Interface over Implementation
1/18/2019 https://jsfoo.in/2019-pune/ 10
Microservice
An architectural style that structures an application
as a collection of services that are
• Highly maintainable and testable
• Loosely coupled
• Independently deployable
• Organized around business capabilities
1/18/2019 https://jsfoo.in/2019-pune/ 11
Microservice
• Enables the continuous delivery/deployment of
large, complex applications
• Enables an organization to evolve its technology
stack
https://microservices.io
1/18/2019 https://jsfoo.in/2019-pune/ 12
JavaScript +
MicroService
To our rescue
A Typical MicroService
• Traditional MEAN Stack
• MongoDB Native Driver
• Auth using KeyCloak
• API based Remoting
• Messaging based Pub / Sub
• Logging – HTTP and Application logging
• pm2 for runtime and process management
• Entry in nginx for routing
• Jenkins Pipeline and Docker
1/18/2019 https://jsfoo.in/2019-pune/ 14
Reusable DAO Layer
• Native MongoDB Driver over Mongoose
• Schema and field validation / restriction moved to
Business Logic Layer
• Flexible data model accommodates varying data model
• Generics in Java Vs Closure in JavaScript
• Link to BaseDao -
https://github.com/arunramkrish/hasgeek-jsfoo-
pune-2019/blob/master/dao/baseDao.js
1/18/2019 https://jsfoo.in/2019-pune/ 15
Auth using Keycloak
• One user realm for all microservices
• One keycloak application client for each
microservice
• User associated to Groups and each group
associated to client specific roles
• Customized login theme with branding
https://www.keycloak.org/docs/3.0/securing_apps/t
opics/oidc/javascript-adapter.html
1/18/2019 https://jsfoo.in/2019-pune/ 16
REST Client for API based
Integration
• Using node-rest-client
1/18/2019 https://jsfoo.in/2019-pune/ 17
Rabbit MQ for Messaging / Event
Bus
• Pub-Sub
• P2P
• Reliable
• Link to npm module for connecting to RabbitMQ
• As a sender
• As a receiver
https://www.npmjs.com/package/event-gateway-psg
1/18/2019 https://jsfoo.in/2019-pune/ 18
Logging
• Effective use of Log levels, log formats, file roll over
on size / date
• Separate logs for disparate use cases
1/18/2019 https://jsfoo.in/2019-pune/ 19
PM2 as Process Manager
• High availability
• Auto-recovery from crashes
• Start-up config with NODE_ENV variable
https://pm2.io/doc/en/runtime/overview/
1/18/2019 https://jsfoo.in/2019-pune/ 20
NGINX
• Routes traffic to different Microservice
• Acts as reverse proxy
• Terminates SSL to use HTTP with Microservice
https://docs.nginx.com/nginx/admin-guide/
1/18/2019 https://jsfoo.in/2019-pune/ 21
Jenkins and Docker
• Delivery Pipeline Automation
• Build versions and auto tagging
1/18/2019 https://jsfoo.in/2019-pune/ 22
PDFKit
• Complete control of PDF
• Text, Images, Fonts, Shapes
• Multiple pages, different page sizes
1/18/2019 https://jsfoo.in/2019-pune/ 23
NativeScript Angular
• Truly native mobile App for Android and iPhone
from a single codebase using single skillset
https://www.nativescript.org/nativescript-is-how-
you-build-native-mobile-apps-with-angular
1/18/2019 https://jsfoo.in/2019-pune/ 24
Thank you
https://github.com/arunramkrish
arunram.krish@gmail.com
@arunramkrish
1/18/2019 25

More Related Content

PPS
SAP EP ADMIN Online Training and Placement Support @ Crescent IT Solutions
PDF
Full Stack Development Courses in Coimbatore
PDF
Openbar 12 - Leuven - From reactive programming to reactive architecture
PPTX
Driving Enterprise Architecture Redesign: Cloud-Native Platforms, APIs, and D...
PPTX
Driving Enterprise Architecture Redesign: Cloud-Native Platforms, APIs, and D...
PPTX
Navigating the service mesh landscape with Istio, Consul Connect, and Linkerd
PPTX
Twelve-Factor application pattern with Spring Framework
PDF
ATMOSPHERE at HPC2018 – Fogbow: Middleware for the Federation of IaaS Cloud P...
SAP EP ADMIN Online Training and Placement Support @ Crescent IT Solutions
Full Stack Development Courses in Coimbatore
Openbar 12 - Leuven - From reactive programming to reactive architecture
Driving Enterprise Architecture Redesign: Cloud-Native Platforms, APIs, and D...
Driving Enterprise Architecture Redesign: Cloud-Native Platforms, APIs, and D...
Navigating the service mesh landscape with Istio, Consul Connect, and Linkerd
Twelve-Factor application pattern with Spring Framework
ATMOSPHERE at HPC2018 – Fogbow: Middleware for the Federation of IaaS Cloud P...

Similar to Full stack JavaScript based microservices for HEIs (20)

PDF
PPTX
Xamarin and SAP Mobile Platform for Mobile Enterprise Success - SAP Slides
PDF
Cloud Customer Architecture for API Management
PDF
Introduction to Web Frameworks
PPTX
Service-mesh options with Linkerd, Consul, Istio and AWS AppMesh
PDF
MuleSoft Meetup Valletta 1.0
PDF
Backend for Frontend in Microservices
PDF
Spring IO 2016 - Spring Cloud Microservices, a journey inside a financial entity
PDF
SpringIO 2016 - Spring Cloud MicroServices, a journey inside a financial entity
PPTX
Unlocking the ROI of API Platforms: What Success Actually Looks Like - Budhad...
DOC
GauthamRaj_SI_Resume
PPTX
Cloud service api design rules presentation
DOCX
CV_Lakshman_Kolluru
PDF
Certified Cloud Computing Specialist (CCCS)
DOC
Updated resume
PDF
MicroForntends.pdf
PDF
IRJET- Cross-Platform Supported E-Learning Mobile Application
PDF
Mastering Web Development_ The Ultimate Course.pdf
PDF
Integration of a web portal and an erp through web service based implementati...
DOCX
CV_ShobhitPaliwal
Xamarin and SAP Mobile Platform for Mobile Enterprise Success - SAP Slides
Cloud Customer Architecture for API Management
Introduction to Web Frameworks
Service-mesh options with Linkerd, Consul, Istio and AWS AppMesh
MuleSoft Meetup Valletta 1.0
Backend for Frontend in Microservices
Spring IO 2016 - Spring Cloud Microservices, a journey inside a financial entity
SpringIO 2016 - Spring Cloud MicroServices, a journey inside a financial entity
Unlocking the ROI of API Platforms: What Success Actually Looks Like - Budhad...
GauthamRaj_SI_Resume
Cloud service api design rules presentation
CV_Lakshman_Kolluru
Certified Cloud Computing Specialist (CCCS)
Updated resume
MicroForntends.pdf
IRJET- Cross-Platform Supported E-Learning Mobile Application
Mastering Web Development_ The Ultimate Course.pdf
Integration of a web portal and an erp through web service based implementati...
CV_ShobhitPaliwal
Ad

Recently uploaded (20)

PDF
Classroom Observation Tools for Teachers
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
Cell Structure & Organelles in detailed.
PPTX
Lesson notes of climatology university.
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Cell Types and Its function , kingdom of life
PDF
Computing-Curriculum for Schools in Ghana
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Classroom Observation Tools for Teachers
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Cell Structure & Organelles in detailed.
Lesson notes of climatology university.
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
01-Introduction-to-Information-Management.pdf
Cell Types and Its function , kingdom of life
Computing-Curriculum for Schools in Ghana
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Final Presentation General Medicine 03-08-2024.pptx
Microbial diseases, their pathogenesis and prophylaxis
2.FourierTransform-ShortQuestionswithAnswers.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Supply Chain Operations Speaking Notes -ICLT Program
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Ad

Full stack JavaScript based microservices for HEIs

  • 1. Full-stack JavaScript based micro-services for complete automation of Higher Education Institutions (HEIs) Arun kumar Krishnamoorthy Software Technologies
  • 2. Thinking Big in JavaScript Your Footer Here 2 • Increased Tooling across dev life cycle • Abundance of frameworks across value chain  Richer Language Features  More reliable, better performing server-side middleware
  • 3. 2 Biggest Motivations of using JavaScript across layers 10 Jan 2019 https://jsfoo.in/2019-pune/ 3 • Open source for life time  One core technology across layers
  • 4. Functions of Higher Education Institution 10 Jan 2019 https://jsfoo.in/2019-pune/ 4 Admissions Application Ranking and Selection Admissions Process Students Management Profile Life cycle Student Services Curriculum Design Programmes and Scheme Detailed Syllabus Review and Publish Faculty and Staff Management Profile Faculty Services Performance Reporting & Awards
  • 5. Functions of Higher Education Institution 10 Jan 2019 https://jsfoo.in/2019-pune/ 5 Fees Collection Accounting Structure Fee Components, Structure Fee Collection and tracking Academic Administration Calendar, Workloads, Attendance Assessments, Outcome Attainment Academic Activities, IQAC Examination Enrollments, Exam Fees Exam Calendar, Seating, Hall ticket Evaluation, Outcome, Results Placements Company database Placement Schedule, Student select Interview process, Status tracker
  • 6. Functions of Higher Education Institution 10 Jan 2019 https://jsfoo.in/2019-pune/ 6 Events Co-curricular and Extra- curricular Agenda, Gallery, Write- up Registrations, ticketing Grievance / Feedback Authorities for redressal Logging and tracking Escalation rules Alumni Alumni Database Periodic News letter Posts, Collaboration for a cause Hostels Requests and Room Allotments Fees, Caution Deposit, Mess Bills In-out tracker, approval, notifications
  • 7. Functions of Higher Education Institution 10 Jan 2019 https://jsfoo.in/2019-pune/ 7 Showcase through a dynamic, engaging Website Awards Events Courses Infra
  • 8. Characteristics of the Problem Domain • Well-defined, well-managed and controlled functions • Clear ownership of data • Ex. Admissions, Students enrollments, Programme scheme and syllabus • Predictable peak, average workloads • Ex. last date of applications, results announcements, last date of fees payment, important news / events / announcements • Inherent data partitions – Transactional in an academic year, Analytical for historical data • Deadlines are truly real and availability is very critical • Ex: Exam dates, fees payment due date, reopening date Your Date Here https://jsfoo.in/2019-pune/ 8
  • 9. Architecture Drivers • Schema less across layers to cater to varying needs of different fields of Higher Education • Loosely coupled across functions • Scale-up / Scale-down independently • Distributed deployment, cloud agnostic, hybrid • Open source reducing Total Cost of Ownership • Shallow learning curve and Rapid prototyping / development • Single-sign-on across functions 1/18/2019 https://jsfoo.in/2019-pune/ 9
  • 10. Design Principles • Single Responsibility Principle • Inversion of Control (Dependency Injection) • Interface over Implementation 1/18/2019 https://jsfoo.in/2019-pune/ 10
  • 11. Microservice An architectural style that structures an application as a collection of services that are • Highly maintainable and testable • Loosely coupled • Independently deployable • Organized around business capabilities 1/18/2019 https://jsfoo.in/2019-pune/ 11
  • 12. Microservice • Enables the continuous delivery/deployment of large, complex applications • Enables an organization to evolve its technology stack https://microservices.io 1/18/2019 https://jsfoo.in/2019-pune/ 12
  • 14. A Typical MicroService • Traditional MEAN Stack • MongoDB Native Driver • Auth using KeyCloak • API based Remoting • Messaging based Pub / Sub • Logging – HTTP and Application logging • pm2 for runtime and process management • Entry in nginx for routing • Jenkins Pipeline and Docker 1/18/2019 https://jsfoo.in/2019-pune/ 14
  • 15. Reusable DAO Layer • Native MongoDB Driver over Mongoose • Schema and field validation / restriction moved to Business Logic Layer • Flexible data model accommodates varying data model • Generics in Java Vs Closure in JavaScript • Link to BaseDao - https://github.com/arunramkrish/hasgeek-jsfoo- pune-2019/blob/master/dao/baseDao.js 1/18/2019 https://jsfoo.in/2019-pune/ 15
  • 16. Auth using Keycloak • One user realm for all microservices • One keycloak application client for each microservice • User associated to Groups and each group associated to client specific roles • Customized login theme with branding https://www.keycloak.org/docs/3.0/securing_apps/t opics/oidc/javascript-adapter.html 1/18/2019 https://jsfoo.in/2019-pune/ 16
  • 17. REST Client for API based Integration • Using node-rest-client 1/18/2019 https://jsfoo.in/2019-pune/ 17
  • 18. Rabbit MQ for Messaging / Event Bus • Pub-Sub • P2P • Reliable • Link to npm module for connecting to RabbitMQ • As a sender • As a receiver https://www.npmjs.com/package/event-gateway-psg 1/18/2019 https://jsfoo.in/2019-pune/ 18
  • 19. Logging • Effective use of Log levels, log formats, file roll over on size / date • Separate logs for disparate use cases 1/18/2019 https://jsfoo.in/2019-pune/ 19
  • 20. PM2 as Process Manager • High availability • Auto-recovery from crashes • Start-up config with NODE_ENV variable https://pm2.io/doc/en/runtime/overview/ 1/18/2019 https://jsfoo.in/2019-pune/ 20
  • 21. NGINX • Routes traffic to different Microservice • Acts as reverse proxy • Terminates SSL to use HTTP with Microservice https://docs.nginx.com/nginx/admin-guide/ 1/18/2019 https://jsfoo.in/2019-pune/ 21
  • 22. Jenkins and Docker • Delivery Pipeline Automation • Build versions and auto tagging 1/18/2019 https://jsfoo.in/2019-pune/ 22
  • 23. PDFKit • Complete control of PDF • Text, Images, Fonts, Shapes • Multiple pages, different page sizes 1/18/2019 https://jsfoo.in/2019-pune/ 23
  • 24. NativeScript Angular • Truly native mobile App for Android and iPhone from a single codebase using single skillset https://www.nativescript.org/nativescript-is-how- you-build-native-mobile-apps-with-angular 1/18/2019 https://jsfoo.in/2019-pune/ 24

Editor's Notes

  • #9: Well-defined, well-managed and controlled functions Clear ownership of data – Ex. Admissions, Students enrollments, Programme scheme and syllabus Predictable peak, average workloads – Ex. last date of applications, results announcements, last date of fees payment, important news / events / announcements Inherent data partitions – Transactional in an academic year, Analytical for historical data Deadlines are truly real and availability is very critical – Exam dates, fees payment due date, reopening date
  • #14: © Copyright Showeet.com
  • #21: https://www.digitalocean.com/community/tutorials/how-to-use-pm2-to-setup-a-node-js-production-environment-on-an-ubuntu-vps