Developer Story: The Server is the Focal Point

Photo by Adi Goldstein on Unsplash

If the database is the foundation of an application, as I posited in the discussion of my thoughts on databases, then the server is the focal point of all the activity in an application. What I mean by that is, if the database is the single source of truth in an application, which I believe it absolutely always should be in order to avoid data inconsistency and application state confusion, then the server provides the single access point to the database. The server is the gatekeeper of the database and should provide a clean, concise, and consistent interface for interacting with all of the data contained inside of it.

As I have mentioned previously in past developer story entries, throughout my career I have seen a great many things that have perplexed me in terms of the choices that my colleagues have made, not only when developing database infrastructure, but also when developing the server infrastructure that wraps around that database infrastructure. I have seen more than a few software systems where the database is structured in a certain way and the server providing access to that database does not provide an accurate or even consistent view of the data contained within it or ways to interact with that data. There are often many different programming standards established within a single server instance, none of which provides a complete picture of the underlying database. This is not only frustrating, but can also be dangerous from a business standpoint because it can result in a development team coding itself into such a vast amount of technical debt that it is impossible to code your way out of it due to time or financial constraints.

Much of this mismatch can be attributed to the fact that the database infrastructure and the server infrastructure are usually built by different people or even different teams. To compound the problem, those people or teams often do not communicate well enough with each other to develop and agree upon a consistent server programming standard. Most companies that I have worked for have had difficulties establishing an effective communication line between different groups of people, and the results of their development efforts are underwhelming to say the least. I have, however, also worked at a couple companies where this was not the case. Multiple people working on the server at different times independent of each other managed to develop and maintain a consistent programming standard. I do honestly think, though, that such outcomes are the exception to the rule and are rarely realized in professional practice. So it is not impossible, but it seems to be elusive for most companies out there. That is not to say that there are not plenty of people who do actively work hard towards the goal of building and maintaining a consistent server programming standard. Many times, things just slip away from us and as our attention is directed elsewhere technical debt creeps up and piles on before anyone realizes what has happened.

Through all of my software development experience, both good and bad, the way that I have come to view the server in any software system is that, if the database houses a clean, efficient, and orderly dataset, then the server provides a clean, efficient, and consistent interface to that dataset to best suit the needs of the client with respect to that data. Of course, the way that data is used on any client never really fully matches the way that it is stored in the database, nor should it in most cases. But the best database designers do attempt to model their datasets in such a way as to be familiar to the clients consuming them. The server merely provides that necessary translation layer when the data comes out of the database and is fed to the client or the client sends data down to the database. Obviously, the closer the database structure is to the usage demands of its data on the client, the less complex the server logic needs to be in order to achieve the necessary translation. This is always a fine balancing act, though, because oftentimes the data needs of the client are much more diverse than the ways in which the data can be stored in the database.

The effort to create better server infrastructure with a well considered programming standard is something that I myself have struggled with throughout my entire career, which is the reason why I am so passionate about highlighting this issue in software development. In order to create an effective and efficient server, you usually need to have a good understanding of the database structure as well as the needs of the client, and then you need to have good enough judgment to know how to connect the myriad dots in the middle. To make matters worse, most of the time, especially in large companies and even in medium-sized companies, it is difficult or impossible to gather enough information to make a good judgment on how to proceed with building a high-quality server. Personally, I was never able to get a good idea about how to do things the right way until I was able to glimpse the whole picture of a system that took requests from the client, translated those into meaningful database interactions, executed the necessary database transactions, repackaged the results, and sent them back up to the client, all in one consistent and efficient workflow.

With all of that being said, I want to provide more details regarding my plans for server development on my personal project. In the ongoing effort to improve my server development skills and knowledge, I have some very big plans indeed. As I have stated previously, my most recent professional software development experience has focused on NodeJS, so I will first be developing an appropriate server for my application using NodeJS with ExpressJS for all routing logic and the MongoDB NodeJS driver for all database interaction. This is the server configuration that I have been most comfortable with most recently in my professional and personal development, so it is the configuration with which I can create a server fastest. Like with my plans for database development, however, I will not stop there as there are many other different configurations that it would be helpful to learn in order to expand my skills and knowledge when it comes to server development.

Once I have created a server using NodeJS and ExpressJS, I would also like to build a server using NodeJS and the increasingly popular GraphQL. I want to stick with NodeJS for the second functionally-equivalent but completely separate version of my server application so that I can focus on learning how to work with GraphQL without having to learn a new language as well. Beyond that, I have had a strong interest in working with Go, so I would like to tackle another version of my server application using that. And even beyond that, although I have a lot of academic experience working with Java, I have not really touched it at all since leaving university. As an excuse to get back into it and learn all of the changes that have transpired since my time in university, I would like to build a version of my server application using Java as well.

So as you can see, I have a lot of work cut out for me in terms of server development for my personal project. All of it will serve the same purpose as my plans to build multiple data-equivalent versions of my database in different database systems. In building functionally-equivalent servers using many different technologies, I can gain a better first-hand understanding of when to use a specific language or framework in different situations. And the results of all of the tests that I will run using these different versions of my server will be presented in future developer story entries for everyone’s benefit. Please stay tuned for those and more on my thoughts as I make further progress on my personal project.




I am just a software engineer trying to make the world better, one line of code at a time

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Women Who Code Delhi Mentorship Program 3.0 (Week 2)

The Infrastructure and Cloud Deployment Strategy of X.D. Network Inc.

Conventions: REST

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Keith Dawson

Keith Dawson

I am just a software engineer trying to make the world better, one line of code at a time

More from Medium

A TL;DR guide to MVC frameworks

Types in Go

Understanding MySQL’s “Binlog”

Repository Pattern Prisma ORM