Export model in lib.so vs lib.tar

Hi,

Is it equally valid to export the model in an .so file as in a .tar file. Is it compression the only difference between these two exporting approaches?

Thanks