What’s the difference between a web site and a web application? [closed]

This is totally personal and subjective, but I’d say that a website is defined by its content, while a web application is defined by its interaction with the user. That is, a website can plausibly consist of a static content repository that’s dealt out to all visitors, while a web application depends on interaction and … Read more

How do I convert web application into desktop executable?

Electron is the easiest way: 1. Install electron 2. Create and edit main.js: const electron = require(‘electron’); const { app, BrowserWindow } = electron; let mainWindow; app.on(‘ready’, () => { mainWindow = new BrowserWindow({ width: 1000, height: 700 }); mainWindow.setTitle(‘title of the desktop app’); mainWindow.loadURL(‘http://www.yourwebpage.com’); mainWindow.on(‘closed’, () => { mainWindow = null; }); }); 3. … Read more

What ways are out there to display a desktop notification from a web app?

Below is a working example of desktop notifications for Chrome, Firefox, Opera and Safari, copied from Chrome desktop notification example. Try it live on JSBin. // request permission on page load document.addEventListener(‘DOMContentLoaded’, function () { if (Notification.permission !== “granted”) Notification.requestPermission(); }); function notifyMe() { if (!Notification) { alert(‘Desktop notifications not available in your browser. Try … Read more

User registration/authentication flow on a REST API

REGISTER Tokens that expire/tokens per session are not complying with the statelessness of REST, right? No, there’s nothing wrong with that. Many HTTP authentication schemes do have expiring tokens. OAuth2 is super popular for REST services, and many OAuth2 implementations force the client to refresh the access token from time to time. My idea is … Read more

Websockets in microservices architecture

Websockets A websocket connection opened by a client must eventually connect to a websocket server. API Gateway The job of the API gateway is to accept an incoming websocket connection from a client and correctly route it to a websocket server. An API gateway will redirect ALL data sent from a client websocket to the … Read more

What is the highest number of threads that is reasonable to simultaneously run in Jmeter?

JMeter can simulate a very High Load provided you use it right. Don’t listen to Urban Legends that say JMeter cannot handle high load. Now as for answer, it depends on: your machine power your jvm 32 bits or 64 bits your jvm allocated memory -Xmx your test plan ( lot of beanshell, post processor, … Read more