On Apr 3, 2019, at 11:34 AM, Shyaka Rene <[email protected]> wrote: > > > Hello. > I'm new to go, i'm looking for a programming language to replace java. I have > simple questions > • is it a good idea to deploy go in cloud server if go is compiled to > machine binaries, what can happen if the cloud provider changes the physical > server to different processor architecture.
This is a concern for Java, too, in that you have to have a JVM to run on. Go builds easily for most common cloud architectures these days (amd64, ppc64le, arm/aarch64, s390) and less easily for a few others (e.g. sparc). Do multi-architecture builds to protect yourself. If you're building for modern cloud infrastructure, you may be using Docker; Docker supports multi-architecture images, so if you do your build system correctly, you should be able to build image bundles that support a bunch of different architectures reasonably easily. It's maybe somewhat less easy than distributing a Java binary across multiple architectures, but ultimately it's probably easier than maintaining something that needs to run well across different Unixes and beyond (OpenVMS, IBM i to name a few). That said, most cloud providers aren't in the business of suddenly changing their entire processor architecture to something incompatible, unless they're Oracle. > • does go have embedded relational database management system similar > to h2 in java. google gives me key/value pair embedded database > any help is appreciated. thank you Go has lots of interfaces to lots of databases, from key/value (memcached, Redis, bdb) to relational (an flexible SQL interface with drivers for most popular RDBs including sqlite) to popular non-SQL databases (Couchbase, Mongo, etc). Others on the list have also pointed out a few other embedded ones available for Go of which I wasn't aware, so that's very exciting. - Dave -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
