Sat.May 20, 2017 - Fri.May 26, 2017

article thumbnail

Using Network Sockets With The Go Programming Language

The Polyglot Developer

A few months back I wrote about using websockets in a Golang application for communication with an Angular client web application. While very useful and simplistic, in many cases websockets won’t be the means for real-time communication between applications. It is often easier or better to use standard TCP network sockets as an alternative. For example, if you’re developing an online video game, it will likely communicate to the server using TCP sockets rather than websockets.

article thumbnail

How It Works: SQL Server Deadlock Trace Flag 1222 Output

SQL Server According to Bob

The trace flag 1222 can be very powerful and helpful in tracking down the cause of a deadlock when used correctly. This week I was tracking down a blocking situation, which I expected the lock monitor to resolve as a deadlock. The test in question is designed to cause large amounts of deadlocks in order to stress the deadlock detection and resolution code paths.

Servers 40
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Some Lessons Learned On Mentoring

Professor Beekums

Mentoring is one of my favorite activities. No reasonably complex system can be built by a single developer. It takes a team. Helping other members of the team reduces my own workload in the long run, even if it increases it in the short term. Eventually, I found myself enjoying the activity for the sake of it and not just to reduce my own workload.

Systems 61
article thumbnail

Add Two-Factor Authentication To A Golang RESTful API

The Polyglot Developer

When it comes to authenticating users for making use of your API, it is a good idea to add an extra step beyond standard username and password. This is called two-factor authentication (2FA) and it acts as a second layer of security for users making use of your application. Not too long ago I had written about adding 2FA to a RESTful API created with Node.js and Express Framework , but what if we wanted to do it in Golang?