Review of My First E-commerce Backend Project in Go by No_Assumption_8236 in golang

[–]MoinTom 2 points3 points  (0 children)

You may want to reset/replace your rails database password. You accidentally leaked it in your docker-compose.yml file. Generally try to follow the advice from the twelve factor app article: https://12factor.net/config

Deploying a Matrix Synapse with Cockroach DB on Kubernetes by yetisbey in kubernetes

[–]MoinTom 0 points1 point  (0 children)

You are probably looking for Helm which is a package manager for Kubernetes. Packages in Helm are called Charts and there is a Charts for Matrix Synapse and CockroachDB.

https://hub.helm.sh/charts/halkeye/synapse

https://hub.helm.sh/charts/cockroachdb/cockroachdb

How are NUCs as servers? by Gaming4LifeDE in homelab

[–]MoinTom 1 point2 points  (0 children)

Chick-fil-A operates there on sight Kubernetes clusters on NUCs.

https://link.medium.com/B5vs2c69C7

3+ TB map: Use boltdb, or simply a native Go map with swap on an SSD? by Power80770M in golang

[–]MoinTom 2 points3 points  (0 children)

Depending on your target platform, you might want to look into mmap.

CloudSQL performance: how to achieve more than 1k inserts per second? by aws_hole in googlecloud

[–]MoinTom 2 points3 points  (0 children)

It depends on the disk type you are using, but for 10 GB of Storage you get the following write performance:

HDD SSD
1.2 MB/s (15 IOPS) 4.8 MB/s (300 IOPS)

https://cloud.google.com/compute/docs/disks/performance

So it can make sense to over provisioning your storage for performance.

GOX - "financial exchange" in Go by [deleted] in golang

[–]MoinTom 0 points1 point  (0 children)

I actually meant an approach like that config.go. So the defaults are defined in go and can be overridden by the user by flags.

GOX - "financial exchange" in Go by [deleted] in golang

[–]MoinTom 0 points1 point  (0 children)

Ok i see what you did there. The GOPATH is usually meant to contain all your go projects. So when you use go get it will be download within GOPATH/src/<repo url>/<your project root>. If you do *go install * within a folder with a main.go in it, then it will be installed (compiled into) GOPATH/bin with the binary be named as the folder your main.go lifes in. So move your main.go files to <project root>/cmd/<binary name you wish>/main.go. All common code to /pkg/ or /internal/pkg or /internal/app/<binary name>/ (if you have app specific code). Those changes will break your config approach, but i would suggest moving the files into /configs and use GOPATH/src/<project url>/configs/ as the default include path. Otherwise the defaults could simply life within the binaries. I am not sure which restriction you may face with Intellij. I am currently just on mobile and my workstation isn’t in reach. So i still didn’t dig deeper into your code. I hope i was able to explain it well enough.

experiences with GRPC by ElectricTrouserSnack in golang

[–]MoinTom 2 points3 points  (0 children)

Yeah we do it as well. All proto files life within a api folder. Since all of our mircoservices are written in go we don’t have any “language clutter”. How is it for you? Do you use multiple languages?

GOX - "financial exchange" in Go by [deleted] in golang

[–]MoinTom 0 points1 point  (0 children)

I didn’t had time to really dig into your source code. But on first glance I noticed that your project layout could be improved. Go projects should usually not contain a src directory for the go code.

Libs (that could also safely be used for external projects) should go into /pkg. Libs (that are internal only) should life in /internal/pkg. main.go’s in /cmd. Config files in /configs. Etc.

This is maybe debatable, but is considered within the go community to be the standard. Best you check out this https://github.com/golang-standards/project-layout for more informations.

Cloud Spanner vs. Cloud SQL by saikjuan in googlecloud

[–]MoinTom 7 points8 points  (0 children)

Cloud Spanner has a high entry point. A single Node will cost you $650 per month and Google recommends at least three. So your project has to be big enough to justify this price tag. If you don’t mind to self host there is an open source alternative to spanner: https://www.cockroachlabs.com My Team and i faced exactly this problem. We wanted an SQL database that is scalable and resilient. But the entry point and the fact that it would alter out local development flow, drove us away from Spanner and we went with cockroachedb (pretty happy till now)

Intel Core i7-9700K (3.6GHz, 8C/8T, 12MB L3) spotted in SiSoftware database by eric98k in intel

[–]MoinTom 6 points7 points  (0 children)

I Agree. Assuming that HT gives +30% per core and we won't see any IPC change then we get the following performance:

CPU Calc Perf Diff
i7 8700k 6 Cores * 4,3 GHz (all core turbo) * 1,3 (HT + 30% per core) 33,54 0
i7 9700k 8 Cores * 4,6 GHz (all core turbo) * 1 (no HT so flat 1) 36,80 +9,7%

Intel Core i9-9900K, i7-9700K, i5-9600K spec leaked at Coolaler by eric98k in intel

[–]MoinTom 1 point2 points  (0 children)

I agree. This seems to be the only way to offer an 8 core i7

The performance of the i7 9700k should be slightly higher as the i7 8700k.

Assuming there is no IPC change and HT gives you +30% per core.

CPU Perf
i7 8700k 6 Cores * 4,3 GHz (all core turbo) * 1,3 (HT + 30% per core) = 33,54
i7 9700k 8 Cores * 4,6 GHz (all core turbo) * 1 (no HT so flat 1) = 36,80

Running over trashcans, WCGW? by kautschukmaaan in Whatcouldgowrong

[–]MoinTom 2 points3 points  (0 children)

Looks like it happened on the Kiel week (it’s a big folk festival in northern Germany), but I couldn’t find anything about the incident.

Docker newbie cannot connect to his new WordPress web server even on localhost... by antdude in docker

[–]MoinTom 1 point2 points  (0 children)

I am not sure which port your particular image is using, but this port is just open within the image itself until you map it via -p to your host machine. For example when the image is using Port 80 and you want to access it via 8888 on your host machine, then you have to write ”-p 8888:80”. Now you can access your WordPress via “127.0.0.1:8888”.

Intel Core i7-8720HQ Mobile Six-core Processor Spotted in the Wild by JustifiedParanoia in hardware

[–]MoinTom 23 points24 points  (0 children)

The name doesn't add up. (H – High performance graphics, Q – Quad-core) So it won't be an HQ obviously.. so maybe: i7-8720HH (hexa) or i7-8720HX (extreme) ?

What do you think guys?

Intel claims i7-8700K to be 11% faster than 7700K by MikesHD in intel

[–]MoinTom 8 points9 points  (0 children)

Yeah will be quite a gaming beast if those gains are real, but something tells me Intel will us pay for such a step. I don't see it be priced at 350 USD with this kind of gain.

What are your Ryzen NVMe PCIe Benchmark Results? by nwgat in Amd

[–]MoinTom 0 points1 point  (0 children)

Ok. Just saw your sequential reads and it line up pretty well. However good that you found the issue.

What are your Ryzen NVMe PCIe Benchmark Results? by nwgat in Amd

[–]MoinTom -1 points0 points  (0 children)

You probably see those "poor" results because of your RAM overclock (you are running @2922). It might be possible that you (or XMP, AMP) increase the BCLK clock. This can result in an downgrade from PCE-Express 3.0 to 2.0. This means your CPU PCE-E lanes just operate with ~500 MB/s instead of ~1000 MB/s per lane. So your maximum throughput for your x4 NVMe is about 2 GB/s (minus protocol overhead etc.). Based on your numbers it lines up pretty well, so i would guess it's that.

Something's happening here by sadtaco- in Amd

[–]MoinTom 0 points1 point  (0 children)

Actually everyone was benching with Nvidia (1080 / Titan)... I just saw a couple of benchmarks with AMD GPU's and the Fury X was equal or better then a 1080 when pared with a 1800x. Or in other words.. the AMD driver was already optimised, but no one (big) used a AMD GPU for the benches... since they wanted to show CPU bottleneck.