Tuesday, November 27, 2018

11/27 - Horizontal Scaling Project Update - Affidavits Rendering Faster

Big update happened today in the forms generation for the affidavits. We are now porting it to the rest of the forms that the program makes.

Historically the flow has been to generate the PDF and then refresh the browser to its location. So if the program made 12345.pdf, it would refresh to https://ldmax.loyalpuppy.com/directory/12345.pdf

This worked for many years because ldmax.loyalpuppy.com would always resolve to - the same machine.... and its a powerful machine.

But what if we wanted to run 4 code machines instead of one and evenly spread the load? Some of your offices got alot bigger and can bog down a web server sometimes. Then, at any given moment, when your browser looks for ldmax.loyalpuppy.com, it could get one of 4 different machines. So, if we generated the file on machine 1 and then your browser went looking for it on machine 2, we would have a problem.

Fixing this means going through the program and having it send you a header right away and the form data without refreshing your browser. We just did this with the Affidavits and notice that since your browser isn't refreshing, that's one less call to the web server and the forms are popping up even faster! Pretty soon we will start scaling the program horizontally by adding more code servers - you probably wont notice anything since everything is already sub-second in the program, just wanted to keep you posted on whats going on and what we've been doing.

BIG FEATURE! Liquid Design Possibilities Are Endless...

Hey check this out: LDMax allows you to have different job screens for different job types. I'm terrible at design but I'm learn...